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
+10.7k Golang : Get local time and equivalent time in different time zone
+4.9k Javascript : How to get width and height of a div?
+5.4k Python : Delay with time.sleep() function example
+8.8k Golang : On lambda, anonymous, inline functions and function literals
+26.9k Golang : Find files by extension
+28.6k Golang : Change a file last modified date and time
+6.8k Golang : Experimental emojis or emoticons icons programming language
+11.3k Golang : Fix - does not implement sort.Interface (missing Len method)
+19.2k Golang : Execute shell command
+13.5k Golang : Verify token from Google Authenticator App
+5.1k Golang : Get a list of crosses(instruments) available to trade from Oanda account
+10.4k Golang : cannot assign type int to value (type uint8) in range error