+ Reply to Thread
Results 1 to 2 of 2

Thread: How do I get a PDF file I link to not to cache?

  1. #1
    jamie99 is offline x10Hosting Member jamie99 is an unknown quantity at this point
    Join Date
    Jul 2009
    Location
    Hamilton, New Zealand
    Posts
    7

    How do I get a PDF file I link to not to cache?

    How do I get a newsletter pdf that I have a link to not to cache? Some users do not know about refreshing pages and keep seeing the old version. Can I force the PDF either to reload fresh or not to cache at all?

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: How do I get a PDF file I link to not to cache?

    Add the following to your .htaccess file

    Code:
    <FilesMatch "\.pdf$">
    FileETag None
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
    
    </FilesMatch>
    This should turn off all caching.
    Nothing is always absolutely so.

+ Reply to Thread

Similar Threads

  1. why I cant upload my file from link
    By hpnn.hp66 in forum Free Hosting
    Replies: 0
    Last Post: 12-15-2010, 12:23 AM
  2. how to create a link of file??
    By rehaan_sharma27 in forum Free Hosting
    Replies: 1
    Last Post: 06-16-2010, 06:05 AM
  3. link to file outside sub folder
    By galaxyAbstractor in forum Programming Help
    Replies: 5
    Last Post: 01-28-2008, 09:34 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers