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
+7.3k Swift : Convert (cast) Character to Integer?
+22.8k Golang : How to validate URL the right way
+11.3k Golang : Remove or trim extra comma from CSV
+11.8k Golang : Increment string example
+5.8k Golang : How to fix html/template : "somefile" is undefined error?
+12.3k Golang : Strings comparison
+11.2k Golang : Extract part of string with regular expression
+44.1k Golang : Read tab delimited file with encoding/csv package
+7.5k Golang : Another camera capture GUI application with GTK and OpenCV
+9.8k Golang : Web routing/multiplex example
+3.9k Golang : Calculate a pip value and distance to target profit example
+18.3k Golang : Archive directory with tar and gzip