You are not logged in.
Pages: 1
Any advice on how to deal with the browser caching of documents such as PDF's when you overwrite them with the "replace" option in the file manager? If the user doesn't force refresh the browser, it still appears as the older content.
Offline
I'd recommend setting custom no-cache headers for PDFs in /site/.htaccess -- since that content probably isn't loaded very frequently it shouldn't need to be cached at all. You could do something like this to make the file (hopefully) un-cache from the user's browser after 5 minutes:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/pdf "access plus 5 minutes"
</IfModule>
Offline
Thanks Tim. That sounds perfect. I implemented it, and will test it out.
Offline
Pages: 1