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.1k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example
+11.2k Golang : Web routing/multiplex example
+19.7k Golang : Example for DSA(Digital Signature Algorithm) package functions
+9.5k Golang : Terminate-stay-resident or daemonize your program?
+5.1k Golang : micron to centimeter example
+11.9k Golang : Verify Linux user password again before executing a program example
+10.7k Golang : How to delete element(data) from map ?
+7.5k Linux : How to fix Brother HL-1110 printing blank page problem
+8.4k Golang : Auto-generate reply email with text/template package
+5.5k How to check with curl if my website or the asset is gzipped ?
+14.2k Golang : Reverse IP address for reverse DNS lookup example