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
+14.3k Golang : How to convert a number to words
+7.7k Golang : Load DSA public key from file example
+5.2k Javascript : Change page title to get viewer attention
+55.1k Golang : Unmarshal JSON from http response
+17.6k Golang : Upload/Receive file progress indicator
+16.8k Golang : Set up source IP address before making HTTP request
+9.3k Golang : Web(Javascript) to server-side websocket example
+6.1k Golang : Scan forex opportunities by Bollinger bands
+14.1k Golang : Check if a file exist or not
+7.5k SSL : How to check if current certificate is sha1 or sha2 from command line
+21.2k Golang : How to get time zone and load different time zone?
+10.6k Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example