Hello again all,
I found a better way to stop caching if you use Apache Web Server on the Linux OS:
Add the following sections to your .htaccess file in your site's root directory:
...then you
don't have to add meta tags on all your pages such as the following:
<meta http-equiv="pragma" content="nocache">
(The above meta tag only works with some caches and are disregarded by
some client-side caches, server caches, proxy caches, gateway caches, etc.
Instead go with the code below in your .htaccess file:
----------------------------------------------------------------------------------------
# NEVER CACHE HOME PAGE
<FilesMatch "^\$">
Header set Expires "Mon, 01 Jan 2007 12:00:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate"
Header set Pragma "no-cache"
</FilesMatch>
# NEVER CACHE (.HTM|.HTML|.TXT|.XML|.CSS) PAGES
<FilesMatch "\.(htm|html|txt|xml|css|)$">
Header set Expires "Mon, 01 Jan 2007 12:00:00 GMT"
Header set Cache-Control "no-store, no-cache, must-revalidate"
Header set Pragma "no-cache"
</FilesMatch>
----------------------------------------------------------------------------------------
Note: Lines that start with "#" are comments.
----------------------------------------------------------------------------------------
PS: Don't forget to upload .htaccess again before trying to generate
your sitemap.
----------------------------------------------------------------------------------------
jpb
![Cool 8)](https://www.xml-sitemaps.com/forum/Smileys/default/cool.gif)