This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Clearing cache when I close my browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Clearing cache when I close my browser" Watch "Clearing cache when I close my browser" New topic
Author

Clearing cache when I close my browser

Ratish Vichithran
Greenhorn

Joined: Feb 27, 2009
Posts: 9
My application shows payslips of employees. So when a user click on a link it generates the pdf for which I have added the following code,



But the problem here is that, it creates a PDF in the temporary folder.

Is there a way to delete the cache after the browser showing the pdf is closed?

I tried deactivating cache with the following code,



but it gave me an error saying the file could not be downloaded.


 
jQuery in Action, 2nd edition
 
subject: Clearing cache when I close my browser
 
Similar Threads
Response as PDF
How to clear the browser cache when I close my browser.
Struts 2 - logout - prevent back button
Disabling Back Button in a browser
Disabling Back Button in a browser