Free Support Forum - groupdocs.com

Documents shouldnot get stored in Temporary Internet Files folder


#1

Hi,
I am evaluating GroupDocs viewer for Java version 2.1. When I view the document, it is storing a copy in Temporary Internet Files folder of my desktop. But my requirement is, Temporary Internet Files folder should not have a copy of documents viewed. I tried using useCache as well, no luck. Is there any way to do this in GroupDocs viewer?

Server used: Websphere;Browser used: Internet Explorer.

–Regards, Praveenkanna.


#2
Hello, Praveenkanna!

To disable storing cache in the Temporary Internet Files folder there two option have to be disabled:
useCache=false
and
useHtmlBasedEngine=false

#3

Hi Ihor,
I tried disabling useCache and useHtmlBasedEngine, but still document is getting stored in Temporary Internet Files folder. Is it because I am using evaluation version? – Regards, Praveenkanna.


#4
Praveenkanna, we have investigated this situation a bit deeper and have two solutions for you:
  1. Wait for 2.2.0 release.
  2. Add next code to sample requests:
response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
response.setHeader("Pragma", "no-cache");
Each header represents different browsers, IE, Chrome, etc...

This code could be placed in any desired requests/methos.
For example: if you want that only images are not cached into IE temp folder, then this code should be placed here: http://prntscr.com/3rgt1p and so on.

#5

Thanks Ihor. Adding response header in corresponding action methods, worked fine for me. – Regards, Praveenkanna.


#6

Hi Praveen,


Thanks for evaluating GroupDocs.Viewer for Java v2.1.

If you wish I can send you through a 30 day evaluation license to remove all restrictions during your trial, just let me know and I’ll create one for you?

Many thanks,

Derek

Derek Hyland, Venture Lead, GroupDocs (Aspose Pty Ltd)
Office: +1 (214) 329 9760
Skype: derekh.aspose