473,387 Members | 1,678 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.

output cache question

This might not be the forum for this but oh well...

I have a web app that writes fields into a PDF document, it then
displays a link to this document via an anchor tag. Here is where I
get confused:
even though in the file system the PDF document gets overwritten each
time the page is traversed (i.e. each time the page is browsed to it
iterates through the session var list and writes out a new pdf) when
the page is displayed and the anchor is clicked up comes the previous
pdf doc in the adobe i.e. snap in even though in the file system it is
now replaced? I think basically the browser is caching the doc I need
to cause it to not do that any ideas.

This is what I have now:

<%@ OutputCache Duration="0" VaryByParam="None" Location="Any" %>

Jan 13 '06 #1
1 995
you are controlling the caching of the page with the anchor, but not the
caching of the actual pdf file, which is handled by iis and the users
browser settings. usually the browser is set check once a session for
updates of files.

at a performance and scaling cost, you can write up an asp.net page or
module that sets the caching headers.

a note of caution, to display a pdf file in the browser requires serveral
(2 - 6 downloads depending on browser version), so you don't want no-cache.
this is becuase the browser donloads the file, determine the mime type
requires another application to display, loads the application, then gives
the application the url, which download the file again (if cached the second
download comes from the cache).
-- bruce (sqlwork.com)

<me******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
This might not be the forum for this but oh well...

I have a web app that writes fields into a PDF document, it then
displays a link to this document via an anchor tag. Here is where I
get confused:
even though in the file system the PDF document gets overwritten each
time the page is traversed (i.e. each time the page is browsed to it
iterates through the session var list and writes out a new pdf) when
the page is displayed and the anchor is clicked up comes the previous
pdf doc in the adobe i.e. snap in even though in the file system it is
now replaced? I think basically the browser is caching the doc I need
to cause it to not do that any ideas.

This is what I have now:

<%@ OutputCache Duration="0" VaryByParam="None" Location="Any" %>

Jan 14 '06 #2

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

Similar topics

0
by: mmike | last post by:
How does the ASP.NET output cache affect an httpS:// (SSL) connection? Suppose I have a default.aspx page that has the following: <%@OutputCache Duration="3600" VaryByParam="None" %> ...
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. ...
1
by: Jon | last post by:
Hi, I have a page with 2 user controls, one of which is output cached for an hour the other isn't cached atall. I add a datagrid to the page which I want output cached for 10 minutes can I set...
2
by: Welman Jordan | last post by:
Hello, I met with a tough problem when making my pages. Please help. To make the problem short, i write down what i want here first, and then explain my situation in details. How can I...
0
by: dg | last post by:
Greeting! We are using System.Web.Caching.Cache for our MCMS web application. I am using Cache.Insert () and Cache.Remove(). We are refreshing the cache when it is required. But once in a while...
3
by: Vish | last post by:
Is there a way to see the output cache entries in the httpcontext ? i tried looping thru the items in the cache but they dont seem to be there. I know there are several ways to remove them using...
0
by: SharpSmith | last post by:
hi i have a strange problem with OutPut cache working fine on development box and not working on production server background : @outputCahce directive is fine, but wanted to make centralized...
2
by: aptenodytesforsteri | last post by:
I have an ASP.NET 2.0 application I've localized to English, French, German, and Italian. I used resource (.resx) files. Most of the site is static content, easily 90% of it, so I thought...
7
by: Mark B | last post by:
How do I have a SiteMap based on the output of a stored procedure? (I want to pass a @LanguageCode parameter to it so it will display the top Menu in the appropriate language).
2
by: Ken Fine | last post by:
I have a question about ASP.NET output caching. I want to use screen scraping as a temporary hack to pull in some complex Classic ASP-rendered content into some ASP.NET pages: protected String...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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
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...

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.