Caching Problem

C

CJM

I have an application that I'm developing that generates a PDF from an HTML
page. The quotation.htm page is generated manually, but will be automated in
the finished version. It is processed in PDFTest.asp using an off-the-shelf
PDF component, which creates Test.pdf.

I am having problems with caching: if I change the content of the html page,
it is generally not being reflected in the finished PDF.

I've modified the HTTP Headers (in IIS) to 'Expire Immediately' for the
whole Virtual Directory; I've include 'Response.Expires = 0' in PDFTest.asp;
and I've even converted the original HTML file into ASP (with
Response.Expires = 0 add in).

I havent pinned down the conditions under which the correct result is
achieved. But generally, if I edit the quotation.asp/.htm file, and then
call the PDFTest file, the PDFTest file will pick up the old ASP/HTML file
and render it as a PDF. I've confirmed this by deleting the resulting PDF
file and it is created again each time. Likewise, the URL of the ASP/HTML
file is hard-coded into PDFTest - if I enter this value in a browser, the
correct page is rendered.

On the other hand, would have expected everything to work if I cleared out
IE cache, but it doesnt. Does this mean the page is being incorrectly cached
in IIS?

[This is running on my development machine: XPSP2, IIS5.1]

Thanks

Chris
 
C

CJM

Thanks Stuart.

After a bit of further investigation, I've pinned down the problem to a PDF
component I'm experimenting with.

AFAIK IIS is behaving correctly, but the PDF component isn't; it's supposed
to render a page, determined by the URL you give it, and render it as a PDF.
However, it seems that if we change the page, IE/FF will render the updated
page correctly, but the PDF component looks at an old copy somewhere.

I've contacted the publishers, but regardless, it's not an ASP/IIS problem
so this thread can close.

Thanks

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top