A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
httpheader no caching off pdf?
Joined: May 17, 2002
Mar 31, 2006 02:08:00
We dont want to cache the
document on the browsers temporary files !
I tried this, but i dosent work, any good ideas ???
res.setHeader("Expires","-1"); res.setHeader("Cache-Control","no-store, no-cache, must-revalidate,post-check=0, pre-check=0");
[ March 31, 2006: Message edited by: Bear Bibeault ]
Joined: Mar 23, 2006
Apr 01, 2006 18:19:00
If you are just looking to see a new pdf, then you may try attaching a random number at the end of the url. so this makes sure that you dont see a cached file.
I used this approach, so that i can see a new or updated file at the same URL and it worked for mr
I agree. Here's the link:
subject: httpheader no caching off pdf?
Question on cache control...
Prevent caching of pdf documents over SSL
opening pdf file in servlet
Blank PDF displayed on IE once every 5 to 6 attempts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014