i have a small site in html, that calls certain functions in perl. The site has 2 pages. Page A and B.
My problem is when i go from paga B to A or vice-versa, the content of the page isn't reloaded. So if i change something in page B and then go to page A, i still have the content before my changes.
How can i allways force the开发者_开发百科 reload and especially the execution on the perl functions that read from files?
Thanks.
You have to set the Expires header for the page to something in the past. It's not clear from your question if the entire page is being generated from Perl. If not, how is it loading the "certain functions in perl"? SSI?
Adding this to your .htaccess file should work, I think:
ExpiresActive On
<FilesMatch "\.html$">
ExpiresDefault A0
Header set cache-control: "no-cache, public, must-revalidate"
</FilesMatch>
精彩评论