Google : Block or disable caching of your website content
Problem :
You don't want Google or other search engines to cache your page content for reason such as - published a page with an embarrassing mistake or contain sensitive or erroneous information that you've removed from your server. How do you tell Google not to cache your page content?
Solution :
Insert the noarchive meta tag in between the
<head></head>
block. For example :<head> ... <meta name=”robots” content=”noarchive”> ... </head>
This will block as per page. And if you're looking to disable caching for the entire webserver, read the next solution.
Or Insert this instruction in the
robots.txt
file and make it accessible from the webserver's root directory.User-agent: * Noarchive: /
For example, https://www.socketloop.com/robots.txt
In this way, Google will understand that you do not want any caching done for the entire server.
Hope this tutorial is useful to ya.
See also : How to show different content from website server when AdBlock is detected?
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+11.4k Golang : Get absolute path to binary for os.Exec function with exec.LookPath
+5.5k WARNING: UNPROTECTED PRIVATE KEY FILE! error message
+6.8k Golang : Error reading timestamp with GORM or SQL driver
+16k Golang : Check if IP address is version 4 or 6
+8.8k Golang : Check if user agent is a robot or crawler example
+15.5k Golang : Gzip file example
+8.3k Golang : How to get ECDSA curve and parameters data?
+9.6k Golang : Get currencies exchange rates example
+10.4k Golang : Generate DSA private, public key and PEM files example
+10.9k Golang : Print UTF-8 fonts on image example
+16.4k Golang : Login and logout a user after password verification and redirect example