473,387 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Caching Problem

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
Jul 19 '05 #1
2 1559
Try this:-
http://www.aspfaq.com/show.asp?id=2022
It mght help, it seems to work for me.
Stu

"CJM" <cj*******@newsgroups.nospam> wrote in message
news:um**************@TK2MSFTNGP14.phx.gbl...
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

Jul 19 '05 #2
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
"Stuart Palmer" <tr**********@youcant.com> wrote in message
news:2r*************@uni-berlin.de...
Try this:-
http://www.aspfaq.com/show.asp?id=2022
It mght help, it seems to work for me.
Stu

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hypo | last post by:
Im relatilvly new to a web programming in general, and here's the situation i have: I have a default page with dynamic content, and one button with onclick code something like this: { // do...
0
by: Martin | last post by:
Hi. I had a very frustrating afternoon and evening but I have got it all under control now so all of a sudden I am in a good mood. I want to share some insights on output caching with you lot. ...
3
by: Janaka | last post by:
Hi All, I'm having a problem with Page Output caching on a page that contains a DataGrid. Basically the page pulls up some data for sales information from the DB. Some of this has to be...
1
by: Leo Muller | last post by:
I am impressed by the caching performance of .NET. However, there is one major obstacle that I haven't managed to solve yet. What I want to do is the following: I have a normal site, and a...
8
by: tshad | last post by:
I am having a problem with IE on one machine where it will not work after the first time on certain pages. It appears to be going to the cache all the time. On other machines I don't have that...
2
by: lanem | last post by:
I am working on a ASP.NET 2.0 web site that has some PDFs that users can download. I'm using an HTTP module to see if the user has permission to view the PDF before loading it. This all works...
0
by: Jonaed | last post by:
Hello, I am having a problem with caching, or at least I think it is with caching. I have a simple <%= "text " + DateTime.Now.ToString() %> in one of my aspx files (that is included thru the...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
4
by: Hermann | last post by:
My site is a bit slow showing the main page so I thought caching query result in PHP will improve performace. Then I read MySQL documentation and saw that MySQL does have a caching feature. So......
2
by: Toni | last post by:
Hello! I'm trying to use ASP.NET caching with my web site and SQL Server, but I have a problem. I try to do everything according to the instructions like this page here:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.