OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: Re: Prevent caching.

[ Lists Home | Date Index | Thread Index ]
  • From: paulo.gaspar@krankikom.de
  • To: ricko@geotempo.com
  • Date: Mon, 5 Jun 2000 06:18:09 -0700

A used a great document on how caches work on: 
(Yes, it is a commercial site.) 
Another VERY interesting one, with implementation examples 
for many languages/environments (including ASPs and PHP) at:

And THE web caching site (which also includes a version of 
the previous article) at: 
Tunning the time to expire of a document (using the HTTP 
headers) can also allow you to establish a good compromise 
between performance and evolutionary needs. 
What do I mean by that? Well, doing something like: 
- No cache when you are developing the site with no users; 
- Some minutes to expire while evolution is still going 
on and you already have some users; 
- An hour or so with already many users but not so many 
- and so on until the time to expire matches the time to 
the publication of new versions of the content. 

Have fun,

--- Original Message ---
Rick JELLIFFE <ricko@geotempo.com> Wrote on 
Mon, 05 Jun 2000 18:09:24 +0800
Johan Warman wrote:
> Hi
> I've wrote some dll's that generates xml-documents. My problem
is that when
> I create a new doc with same name as an old one, the old one
is cached and I
> have to reload the doc manually. Does anybody have a clue how
to avoid this.
> I'm using IIS4, MS IExplorer 5.0, ASP and XSL.
Caching effects are complete nightmares, especially during debugging.

Here are the places that you need to look at

1) the HTTP headers
2) meta tags in any HTML
3) the cache or history files in your browser
4) caching in your proxy server  (if your proxy server administrator
cannot/will not turn off caching in proxy server, turn off proxy
use in
your browser when you are debugging, even though it costs you
access through your firewall.)

The basic rule for development is to turn off caching everywhere,
generate HTTP headers (or HTML headers) which block caching,
to try to
generate unique names for files whereever possible, and to close
applications regularly (sometimes you may have to clear the history
before quitting. (For some browsers, you may even find that there
is a
behaviour difference between reloading with the reload button,
reload+escape button, and using the buttons back then forwards.)

I don't know about DLLs, but it is important to realize that
parts of the a compound document may be reloaded at different

If you are using Java Servlets (you are not, but this is the
best I can
do, you will have to look up the equivalents in your API) then
you to
set the HTTP headers correctly you call
These can well be standard part of debugging: your sections QC
should mandate these and someone should look through code to
make sure
that it is there. 

Here, we send around an email telling explaining to everyone
who needs
to trial some software under development to turn off their browser
caching, too.  Hope this is some help.

Rick Jelliffe

Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web browser, anywhere!

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS