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 : Get FX sentiment from website example
+15.2k Golang : Convert slice to array
+16.3k Golang : [json: cannot unmarshal object into Go value of type]
+4.1k Python : Convert(cast) bytes to string example
+26k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+20.5k Golang : Setting up/configure AWS credentials with official aws-sdk-go
+13.5k Golang : Execute function at intervals or after some delay
+19.7k Curl usage examples with Golang
+12k Golang : Get user input until a command or receive a word to stop
+12.7k Golang : convert rune to unicode hexadecimal value and back to rune character
+11k Golang : Add ASCII art to command line application launching process
+11.7k Golang : Qt progress dialog example