View Full Version : Server Refreshing
shaneb
07-21-2005, 06:35 PM
Hello, I have an issue with files refreshing on the site I am developing. I update this website every Friday and on Mondays I update a PDF file. Well, my problem is that I updated the PDF file just now but I still get the old version when I log onto the site and click on the link. I have cleared all history and cache, deleted the old PDF and uploaded the new one but I still get this error. Also I would LOVE to have the server set to refresh it's content, or have it force the clients browser to refresh itself, or act as if the client has never been to the site before so that they are always getting updated info without having to hit refresh themselves on everypage. I know this has to be very simple and common all over the net so I would appreciate any help. Thanks.
Lyconpire
07-21-2005, 06:59 PM
add this onto every page you want clear cache on
<meta http-equiv="Cache-Control" content="no-cache">
this will force the clients browser to refresh itself in a way. :thumbsup:
shaneb
07-21-2005, 07:28 PM
ok great, thanks. but what about the PDF not getting refreshed? it is located in the assets folder. so the link on the button goes here: www.domain.com/assets/pdf. so i delete the pdf, put the new one on (just to make sure it puts the right one on) but it opens the old one still. whats up?
shaneb,
if your site is on an Apache server and you're allowed to use .htaccess files you could try this:
ExpiresActive On
<FilesMatch "\.pdf$">
ExpiresDefault A0
Header unset Cache-Control:
Header append Cache-Control: "no-cache, must-revalidate"
</FilesMatch>
or:
ExpiresActive On
ExpiresByType application/pdf A0
You can check if it works with a cacheability engine like this one: http://www.web-caching.com/cacheability.html
shaneb
07-22-2005, 03:29 PM
thanks alot, ill look into that.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.