New Forum | Previous | Next | (P-PDF) Developers
Topic: setFile Java-does it use pdf in server, or locally cached pdf???
Conf: (P-PDF) Developers, Msg: 92983
Date: 7/26/2003 01:35 AM
Does setFile(http://www.myDomain.com/PDF/my.pdf) method in Java FDF Tool kit always opens a file from the server, or does it open that file from user's compueter's cache, if that file is available in user's cache and is the same as the file in server?
PDF file will get cached in C:\Documents And Settings\myProfile\TemporaryInternetFiles\my.pdf - unless the cache is cleared.
Code below sets values to pdf file:
FDFDoc f = new FDFDoc();
Will setFile method set value in the cached file (C:\Documents And Settings\myProfile\TemporaryInternetFiles\my.pdf ) or, will it always set values in the file in the server?
I want to make sure that a new pdf file is not downloaded on user's computer, unless the file in server is different from the file in cache (C:\Documents....). Any browser (IE, Netscape etc.) will do conditional get based on last modified time and will use cached copy of the pdf, instead of downloading it again from the server.
So, does the line below:
use the cached copy of the pdf or, does it always retrieve the pdf file from the server?