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 Your page has meta tags in the body instead of the head
+14.9k Golang : How to check if input from os.Args is integer?
+5.4k CodeIgniter : form input set_value cause " to become & quot
+9.9k Golang : Web routing/multiplex example
+6.1k Golang : How to iterate a slice without using for loop?
+7.1k Golang : Variadic function arguments sanity check example
+10.1k Golang : Characters limiter example
+7.7k Golang : Executing and evaluating nested loop in html template
+17.2k Golang : How to get hour, minute, second from time?
+6.8k Golang : Ways to recover memory during run time.
+17.1k Golang : Iterating Elements Over A List
+13.4k Golang : How to filter a map's elements for faster lookup