Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Caching Problem

Reply
Thread Tools

Caching Problem

 
 
CJM
Guest
Posts: n/a
 
      09-29-2004
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


 
Reply With Quote
 
 
 
 
Stuart Palmer
Guest
Posts: n/a
 
      09-29-2004
Try this:-
http://www.aspfaq.com/show.asp?id=2022
It mght help, it seems to work for me.
Stu

"CJM" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
CJM
Guest
Posts: n/a
 
      09-29-2004
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


"Stuart Palmer" <> wrote in message
news:...
> Try this:-
> http://www.aspfaq.com/show.asp?id=2022
> It mght help, it seems to work for me.
> Stu
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable page caching without disabling caching of jpegs andstylesheets etc JimLad ASP .Net 3 01-21-2010 10:13 AM
Fragment Caching inside page caching? Troy Simpson ASP .Net 0 01-19-2004 11:57 AM
trouble with caching or caching the trouble Hypo ASP .Net 6 08-01-2003 07:11 AM
Page Caching Problem Paul M. Frazier, Ph.D. ASP .Net 1 07-28-2003 08:55 PM
Re: ASP.Net, IE 5 & 5.01, Caching Problem Joe Reazor ASP .Net 2 07-21-2003 05:36 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57