[Zope-CMF] FS Skins and Last-Modified
Doyon, Jean-Francois
Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Wed Jan 25 15:51:54 EST 2006
Hello,
I have several FS based skins that use DTML ... I've been controlling
caching through the usual:
<dtml-call "RESPONSE.setHeader('Content-Type','text/css')">
<dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime()
+ 3600).toZone('GMT').rfc822())">
<dtml-call "RESPONSE.setHeader('Last-Modified',
bobobase_modification_time().toZone('GMT').rfc822())">
This has worked well for me for some time now ...
But, for some reason, now it seems bobobase_modification_time comes out
wrong :(
It's stuck at some date in October, even though the files are far more
recent. This is causing problems with web browsers that have stale code
when they shouldn't, breaks my AJAX interfaces, etc ...
I saw FSObject has getModTime(), but I can't seem to call it from anywhere?
I tried in the header, or in a separate Python Script, to no avail.
So for now, clients are still being told that their months old .js file has
not been modified, even though it has :( (Which is causing me nightmares)
Any know what's going on? A quick fix? A better idea? Any help would be
greatly appreciated!
(This is Zope 2.7.4 with CMF 1.5.0 running on ZEO, I'm working on a major
rewrite with much more up to date versions ...)
Jean-François Doyon
Internet Service Development and Systems Support / Spécialiste de
dèveloppements internet et soutien technique
Canada Centre for Remote Sensing/Centre Canadien de télédétection
Natural Resources Canada/Ressources Naturelles Canada
http://atlas.gc.ca
Tel./Tél.: (613) 992-4902
Fax: (613) 947-2410
More information about the Zope-CMF
mailing list