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.9k Golang : Gaussian blur on image and camera video feed examples
+24.6k Golang : How to read integer value from standard input ?
+11.7k Swift : Convert (cast) Int or int32 value to CGFloat
+6.5k Golang : Word limiter example
+9.6k Golang : Allow Cross-Origin Resource Sharing request
+18.2k Golang : Get RGBA values of each image pixel
+6.6k Golang : Individual and total number of words counter example
+7.3k Golang : Qt splash screen with delay example
+11k Golang : Split strings into command line arguments
+6.6k Golang : Rot13 and Rot5 algorithms example
+18.9k Golang : Check if os.Stdin input data is piped or from terminal