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
+17.1k Golang : When to use init() function?
+24.4k Golang : How to print rune, unicode, utf-8 and non-ASCII CJK(Chinese/Japanese/Korean) characters?
+14.2k Golang : How to convert a number to words
+28.6k Golang : Detect (OS) Operating System
+4.8k Unix/Linux : secure copying between servers with SCP command examples
+14.4k Golang : GUI with Qt and OpenCV to capture image from camera
+21k Golang : Convert(cast) string to rune and back to string example
+9.7k Golang : ffmpeg with os/exec.Command() returns non-zero status
+9.3k Golang : Scramble and unscramble text message by randomly replacing words
+5.2k Golang : How to deal with configuration data?
+6.1k Javascript : Generate random key with specific length
+10k Golang : Identifying Golang HTTP client request