Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes httpheader no caching off pdf? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "httpheader no caching off pdf?" Watch "httpheader no caching off pdf?" New topic

httpheader no caching off pdf?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 358
We dont want to cache the pdf document on the browsers temporary files !

I tried this, but i dosent work, any good ideas ???

[ March 31, 2006: Message edited by: Bear Bibeault ]
Vinod Dalal

Joined: Mar 23, 2006
Posts: 3

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?
It's not a secret anymore!