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
+9.6k Android Studio : Indicate progression with ProgressBar example
+46.7k Golang : Marshal and unmarshal json.RawMessage struct example
+22.6k Golang : Convert Unix timestamp to UTC timestamp
+15k Golang : Submit web forms without browser by http.PostForm example
+16.5k CodeIgniter/PHP : Create directory if does not exist example
+8.9k Golang : Take screen shot of browser with JQuery example
+12.9k Golang : Convert int(year) to time.Time type
+6.9k Swift : substringWithRange() function example
+14.6k Golang : How to determine if user agent is a mobile device example
+52k Golang : How to get time in milliseconds?
+36.8k Golang : Display float in 2 decimal points and rounding up or down
+16.5k Golang : Test floating point numbers not-a-number and infinite example