Results 1 to 6 of 6

Thread: Set Cache Expiration

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Set Cache Expiration

    I have an asp page that has a ftp link to a pdf file.
    Well problem is if someone adds to the pdf file then they are just grabbing the cache version and this is causing a big issue.

    Kind of talked about this in past and i gotta get a solution to this.
    When i look at my temp files i see there is no expiration date set. Is there a way to do this?

    I have tried the different headers on top of the page and settings on IIS which works fine if its actually content on that page. But the content stored from the link stays lurking in there. argh...

    We use Internet explorer ie7 mostly.


  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Set Cache Expiration

    Modify the ftp link each time, then.

    ftp://ftp.example.com/files/abc.pdf?...938randomvalue

    The randomvalue should be generated each time the page is loaded so that the request goes out afresh.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Re: Set Cache Expiration

    Quote Originally Posted by mendhak
    Modify the ftp link each time, then.

    ftp://ftp.example.com/files/abc.pdf?...938randomvalue

    The randomvalue should be generated each time the page is loaded so that the request goes out afresh.
    I have tried this approach and it works in Firefox just fine.
    However in IE7 at least it comes up with "IE cannot display this page".

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Set Cache Expiration

    Does it work in IE 7 when you remove the querystring?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    Re: Set Cache Expiration

    Quote Originally Posted by mendhak
    Does it work in IE 7 when you remove the querystring?
    Yep! Works just fine then.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Set Cache Expiration

    The solution then is to either get everyone to modify their IE settings to 'always request latest version of the file' or in a complicated fashion to write an .asp page which takes the PDF file name as a parameter and requests it, then streams it out to the user each time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width