Cache control - document render and loading test issues


Hi , here're some questions to be clarified.

1.
Does cache control mechanism work under the parameter set ?

application.properties

groupdocs.viewer.useCache=true
groupdocs.viewer.useBrowserCache=true
groupdocs.viewer.useHtmlBasedEngine=true

groupdocs.viewer.filePath=null
groupdocs.viewer.showFolderBrowser=false

The question once posted in this thread

2.
When document contains many pages. Is there any way to render the first (few) page(s) to make the wait time spent on client end short ?

3.
When consume document by URL TO FILE .Is file name used to identity different document to be rendered ?
http://127.0.0.1:8080/view?file=url_to_file
for example , file=file_name.doc

4.
When doing loading test , at some point , the application server stopped rendering document view.The only way to make it work again is to restart the application server.
Is there any more detailed information could be logged on application end to identity the cause of this issue?

Required memory to stably run on application server once posted in this thread


Run mode:HTML mode
Document consume method:URL TO FILE
groupdocs library:2.13.0

Hello ,

Thank you for your inquiry.

We will answer you in the same order :

1. Our product team hasn't implemented this improvement ( VIEWERJAVA-907) for GroupDocs.Viewer library . Because at the moment we work on new Viewer product and for current Viewer product we provide only bug fixing. We have plans to release new Viewer product at the beginning of the new year. So at the moment you can follow variants of cache control, that were described in this tread.

2. Yes the Viewer has this option : groupdocs.viewer.preloadPagesCount=0 and you can configure number of pages as you want.

3. Basically, if you will use file=file_name.doc then the Viewer will search this document in folder that was configured in this parameter groupdocs.viewer.filePath

4. Sorry but from your request is not clear what you mean. Could you please provide more info about the issue. If you have stopped the server you will get error message in the server console or in the Tomcat logs. Also to get more info about the error we have implemented several error handlers in our library, since that please check your logs for more info and share it with us.

-------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

Hi Evgen,

Since
Run mode:HTML mode
Document consume method:URL TO FILE
groupdocs.viewer.filePath might be not discussed here.

http://127.0.0.1:8080/view?file=url_to_file
for example URL : http://somewhere/file_001
What would happen if the file has been rendered corresponding files in cache folder once .and later the same URL (which is http://somewhere/file_001.doc) actually refer to different file ?

Hello ,

Sorry for the delay with response.

In case with using web url for file to view it our GroupDocs.Viewer for Java library will generate a cache for this file and constantly will use this cache if you will paste the same url to GET request. But our library also will check meta data for this file and if they will different , then library will regenerate the cache .

If you will have more questions please feel free to contact us.

-------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+