Hi
I've configured my webviewer to turn off cache hinting with the following configuration file:
ReaderControl.prototype.loadDocument = function(doc, options) {
var cacheHinting = window.CoreControls.PartRetrievers.CacheHinting;
var partRetriever = new window.CoreControls.PartRetrievers.HttpPartRetriever(doc, cacheHinting.NO_HINT, options.decrypt, options.decryptOptions);
this.docViewer.loadAsync(partRetriever);
};
When I do this, on a server that supports partial content requests (e.g. webfsd), I get the following error message indicating that a part of the ZIP could not be downloaded, in this case a page thumbnail:
http://imgur.com/NtZ74JD
To reproduce this, take the WebViewer.zip file from the PDFTron site. Modify WebViewer/doc/WebViewer_User_Guide.html and add the line 'config:"config.js",' on or around line 39. Add a file "config.js" with the contents as above, to the same folder as the html file. Serve the files off an HTTP server with range request support (I use webfsd for testing). Load the file in Chrome 49 or 47. Reload the page a few times -- in my tests, the error would appear within 5 reloads, but not every time.
While for this document, the error message does not stop the document loading, for other documents I have converted, it does, usually Annots.xfdf -- and that means no document ever appears in the webviewer.
If I turn the cache hinting feature off, then I can't serve my Xod files from CloudFront with Signed URLs and byte-range requests. Cloudfront will deny requests if extra query parameters are added to the signed request.
Other browsers (Firefox, MSIE) don't seem to have this problem. CloudFront delivers a noticeable performance improvement over serving my documents from S3, so I'm loathe to remove it from my setup.
Can you please look at this?
Regards
Donald