473,756 Members | 5,595 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Expir es = 0' in PDFTest.asp;
and I've even converted the original HTML file into ASP (with
Response.Expire s = 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 1574
Try this:-
http://www.aspfaq.com/show.asp?id=2022
It mght help, it seems to work for me.
Stu

"CJM" <cj*******@news groups.nospam> wrote in message
news:um******** ******@TK2MSFTN GP14.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.Expir es = 0' in PDFTest.asp; and I've even converted the original HTML file into ASP (with
Response.Expire s = 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**********@y oucant.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
1916
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 some processing... Serever.Transfer("second_page.aspx"); // or Response.Redirect("second_page.aspx"); same in
0
2135
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. After looking at the use of the OutputCache directive and tinkering with it a bit I found its usability.very limited. Think of it: it is okay for static content. Well that's nice but no big deal. Static content is cheap anyway, the file system...
3
1642
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 calculated on the fly when the request is made, and so I thought it would be ideal to cache the page for a set amount of time. I've placed the following at the top of my page: <%@ OutputCache Duration="160" VaryByParam="None" %> Now the problem is...
1
1571
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 preview site. The normal site should have maximum performance, thus uses caching. The preview site is for internal use only, and should not use caching, since our content managers will want to see the updates directly. The only difference between the...
8
1219
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 problem. If I delete temporary files, it will work the first time. If I close the browser and then open it again it won't work correctly, unless I do a refresh on each and every page. If I am going to my 3rd page, which depends on data kept...
2
8226
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 great. The problem is that once the PDF has been allowed through to the browser, it won't be denied to the next user. So, if one user is allowed to see it and then a user who is not allowed to see it uses the same browser, it comes through for...
0
2315
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 <!-- #include file="..." --> tags ). So when I change "text" into something else and hit refresh, it still shows the word "text". The time actually changes with every hit of refresh. I have caching (on client computer) turned of through the...
3
2946
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 say “www.Test1.com” and “www.Test2.com” pointing to a single website. Website content is located onto UNCPath i.e. remote location. Domain 1: www.Test1.com points to \\servername\websitefolder\homedirectory
4
2984
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... now I dont know if doing the PHP caching is worth the pain. Would there be any noticed performace improvement if I cache query results in PHP, considering that MySQL is already caching the queries? Thanks
2
2010
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: http://www.eggheadcafe.com/articles/20060407.asp First I run the aspnet_regsql tool on the command line succesfully to enable the database for cache notification: aspnet_regsql -S -E -d -ed
0
9462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9287
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9886
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.