Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > XSLT and client cache

Reply
Thread Tools

XSLT and client cache

 
 
john
Guest
Posts: n/a
 
      09-24-2004
Hi
I want to do something like this:
Store the XSLT document in the client cache if it is not already present.
If present then use that XSLT document to display the xml.
I have no idea how to do this.
Can anyone help.
 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      09-24-2004
john wrote:
> I want to do something like this:
> Store the XSLT document in the client cache if it is not already present.
> If present then use that XSLT document to display the xml.
> I have no idea how to do this.


The question is somewhat vague, but I'll refrain from directing
you to read a certain essay by ESR for now.

Can we assume by "client" you mean a web browser? If so,
why would you treat the XSLT document any differently from
any other file your server sends it? Any browser with the
capability should already be caching XSLT just as it caches
anything else that doesn't ask not to be cached with the
various HTTP headers that can do so...

-Peter
 
Reply With Quote
 
 
 
 
john
Guest
Posts: n/a
 
      09-25-2004
Peter Hansen <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> john wrote:
> > I want to do something like this:
> > Store the XSLT document in the client cache if it is not already present.
> > If present then use that XSLT document to display the xml.
> > I have no idea how to do this.

>
> The question is somewhat vague, but I'll refrain from directing
> you to read a certain essay by ESR for now.
>
> Can we assume by "client" you mean a web browser? If so,
> why would you treat the XSLT document any differently from
> any other file your server sends it? Any browser with the
> capability should already be caching XSLT just as it caches
> anything else that doesn't ask not to be cached with the
> various HTTP headers that can do so...
>
> -Peter

Ya i mean web browser by client.
But how can I determine whether the XSLT document is already present
in client cache??
 
Reply With Quote
 
Peter Hansen
Guest
Posts: n/a
 
      09-25-2004
john wrote:
> But how can I determine whether the XSLT document is already present
> in client cache??


You cannot. Have you read about how caches function? The
best you can hope to do is to ask the client to reload
the document, either by marking it as non-cachable or by
indicating that it has changed since the last time the
browser tried to load it, using the last-changed header.

And even then, the browser is free not to reload it again
if it doesn't want. Heck, a user can configure the browser
not even to *check* whether the file should be reloaded,
in some cases.

What are you trying to do that you think you need to
know whether a client cache contains a document?

-Peter
 
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
no-cache - need to reload page from server and not the cache John HTML 2 10-29-2006 05:35 PM
What's the purpose of the helper cache and is there a way to just turn off helper cache-ing? kevin Ruby 1 07-21-2006 03:42 AM
client-side cache vs server-side cache vs ajax vs asp.net callback =?Utf-8?B?b25l?= ASP .Net 1 03-08-2006 12:25 PM
Page.Cache vs HttpContext.Current.Cache DesignerX ASP .Net 5 01-20-2004 10:55 PM
Cache::Cache Stale Segments Jeff Nokes Perl 0 09-30-2003 04:34 PM



Advertisments