Re: [Flashcoders] XML loading. Why file is cached, but script response is not?

2009-04-04 Thread Paul Andrews
Because the file is a script not static text the results returned by the 
script could change even though the URL remains the same.


Paul
- Original Message - 
From: Pavel Repkin pavel.rep...@gmail.com

To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, April 04, 2009 6:55 AM
Subject: [Flashcoders] XML loading. Why file is cached,but script response 
is not?




Hey!
My program loads XML data from the server.
I want the data to cache, so the loading happens only once.
When I load a simple xml file from the server, the caching works like a
charm.

But when I load xml from a Perl script response, the cache does not work.
The data are being loaded every time I call XML.load(...)
The request URL is simple and does not change over time: 
http://repkasoft.com/cgi-bin/test/responseCache/provider.pl;


Do you know why caching does not work for script response?
Is it possible to make it work?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML loading. Why file is cached, but script response is not?

2009-04-04 Thread Juan Pablo Califano
By default, most content generated by server side languages don't carry
along cache information in the http response header. But you can add them
manually, so the client can decide whether to use a cached copy of the
resource or request a fresh one.

Check this link:

http://www.mnot.net/cache_docs/#IMP-SCRIPT

Cheers
Juan Pablo Califano
2009/4/4 Pavel Repkin pavel.rep...@gmail.com

 Hey!
 My program loads XML data from the server.
 I want the data to cache, so the loading happens only once.
 When I load a simple xml file from the server, the caching works like a
 charm.

 But when I load xml from a Perl script response, the cache does not work.
 The data are being loaded every time I call XML.load(...)
 The request URL is simple and does not change over time: 
 http://repkasoft.com/cgi-bin/test/responseCache/provider.pl;


 Do you know why caching does not work for script response?
 Is it possible to make it work?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] XML loading. Why file is cached, but script response is not?

2009-04-03 Thread Pavel Repkin
Hey!
My program loads XML data from the server.
I want the data to cache, so the loading happens only once.
When I load a simple xml file from the server, the caching works like a
charm.

But when I load xml from a Perl script response, the cache does not work.
The data are being loaded every time I call XML.load(...)
The request URL is simple and does not change over time: 
http://repkasoft.com/cgi-bin/test/responseCache/provider.pl;


Do you know why caching does not work for script response?
Is it possible to make it work?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders