|
-
Aug 1st, 2008, 01:13 PM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 2nd, 2008, 12:35 PM
#2
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.
-
Aug 4th, 2008, 07:37 AM
#3
Thread Starter
Hyperactive Member
Re: Set Cache Expiration
 Originally Posted by mendhak
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".
-
Aug 4th, 2008, 02:19 PM
#4
Re: Set Cache Expiration
Does it work in IE 7 when you remove the querystring?
-
Aug 4th, 2008, 02:55 PM
#5
Thread Starter
Hyperactive Member
Re: Set Cache Expiration
 Originally Posted by mendhak
Does it work in IE 7 when you remove the querystring?
Yep! Works just fine then.
-
Aug 5th, 2008, 01:10 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|