ASU Web Community

MS Word Documents and Cache

Wednesday, July 9th, 2008 - 3:06 pm
  • bbailey1
  • bbailey1's picture

The Graduate College has a lot of forms for download off of our website and we are encountering a problem when we update a Word document. After we update a document, save it with the same name, and upload it into place, the website still pulls up the cached version of the document. This seems to be happening in both IE and FF. The only way to access the latest version is to clear the cache. When updating, if we change the name of the document, we avoid this problem, but in case students / departments are linking directly to the file, we would like to keep the same file name.

Has anyone else encountered this issue, and if so, what have you done to remedy this?

Thursday, July 10th, 2008 - 11:07 am
  • bbailey1
  • bbailey1's picture

Found an answer to my own question:

Create an .htaccess file with the following code:

# Force no caching for dynamic files
<FilesMatch "\.(doc|pdf)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

place this file in the folder with your documents.

voila

Monday, November 10th, 2008 - 12:51 pm
  • jsheeha

Thanks for posting this! We were having this problem with .xls files too, so I added that extension as well for our site.