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
+4.2k Golang : Muxing with Martini example
+4.2k Golang : When to use make or new?
+3.4k Golang : Issue HTTP commands to server and port example
+6.2k Golang : Inject/embed Javascript before sending out to browser example
+6.7k Android Studio : Simple input textbox and intercept key example
+3.2k Golang : Fixing Gorilla mux http.FileServer() 404 problem
+4.1k Golang : Check if one string(rune) is permutation of another string(rune)
+4.6k Golang : Detect Pascal, Kebab, Screaming Snake and Camel cases
+5.9k Golang : Generate EAN barcode
+8.6k Golang : Calculations using complex numbers example
+4.6k Golang : Squaring elements in array
+25k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions