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
+26.3k Golang : Convert(cast) string to uint8 type and back to string
+33.6k Golang : All update packages with go get command
+10.3k Golang : cannot assign type int to value (type uint8) in range error
+14.3k Golang : On enumeration
+12.2k Golang : calculate elapsed run time
+10k Golang : Read file and convert content to string
+9.2k Golang : How to get garbage collection data?
+14.5k Golang : How to check if your program is running in a terminal
+14.2k Golang : Get uploaded file name or access uploaded files
+7.9k Golang : What fmt.Println() can do and println() cannot do
+11k Golang : Roll the dice example
+9.7k Golang : Load ASN1 encoded DSA public key PEM file example