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
+5.7k Javascript : Get operating system and browser information
+7.7k Golang : Multiplexer with net/http and map
+11k Golang : How to flush a channel before the end of program?
+18.2k Unmarshal/Load CSV record into struct in Go
+8.6k Golang : Go as a script or running go with shebang/hashbang style
+13.7k Golang : Check if a file exist or not
+16.8k Golang : Check if IP address is version 4 or 6
+19.2k Golang : Measure http.Get() execution time
+6.9k Golang : Accessing dataframe-go element by row, column and name example
+6.4k Golang : How to setup a disk space used monitoring service with Telegram bot
+5.5k Golang : Launching your executable inside a console under Linux
+13k Golang : Qt progress dialog example