.js File caching behavior on different browsers
Hi all Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours. Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive? I ask because Firefox seems to cling to the JScript files until the user forces it to forget them with 'Clear Private Data', which leads to ugly mismatches between server and client side code. Thxs, Werner
2008/9/13 Werner Thie <wthie@thiengineering.ch>:
Hi all
Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours.
Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive?
I never expire a javascript file, I change his url. If I have a script.js file, I import script.js?v=1, script.js?v=2, ... This force a client reload only with new deploys.
I ask because Firefox seems to cling to the JScript files until the user forces it to forget them with 'Clear Private Data', which leads to ugly mismatches between server and client side code.
Thxs, Werner
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
Thxs, although I thought about doing that it is so against all versioning and release practices and only brings up a burp from the seventies :-(( Thxs, Werner lasizoillo wrote:
2008/9/13 Werner Thie <wthie@thiengineering.ch>:
Hi all
Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours.
Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive?
I never expire a javascript file, I change his url. If I have a script.js file, I import script.js?v=1, script.js?v=2, ... This force a client reload only with new deploys.
I ask because Firefox seems to cling to the JScript files until the user forces it to forget them with 'Clear Private Data', which leads to ugly mismatches between server and client side code.
Thxs, Werner
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
On Sat, 13 Sep 2008 10:00:24 +0200, lasizoillo <lasizoillo@gmail.com> wrote:
2008/9/13 Werner Thie <wthie@thiengineering.ch>:
Hi all
Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours.
Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive?
I never expire a javascript file, I change his url. If I have a script.js file, I import script.js?v=1, script.js?v=2, ... This force a client reload only with new deploys.
Athena effectively does this automatically. If JavaScript source files are changing but the browser isn't requesting the new versions, then there's a bug somewhere that needs to be fixed. Jean-Paul
Jean-Paul Jean-Paul Calderone wrote:
On Sat, 13 Sep 2008 10:00:24 +0200, lasizoillo <lasizoillo@gmail.com> wrote:
2008/9/13 Werner Thie <wthie@thiengineering.ch>:
Hi all
Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours.
Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive?
I never expire a javascript file, I change his url. If I have a script.js file, I import script.js?v=1, script.js?v=2, ... This force a client reload only with new deploys.
Athena effectively does this automatically. If JavaScript source files are changing but the browser isn't requesting the new versions, then there's a bug somewhere that needs to be fixed.
If JScript code is brought to the page via the javaScript classvar class LP(athena.Livepage): javaScript = ('scripts/somescripts.js, 'scripts/otherscripts.js') I end up with a static path to the scripts and they cling to Firefox. How would you suggest to bring in additional (foreign, third party) libraries? Do I have to use the naming kludge or is there a better way. Thxs, Werner
Athena effectively does this automatically. If JavaScript source files are changing but the browser isn't requesting the new versions, then there's a bug somewhere that needs to be fixed.
If JScript code is brought to the page via the javaScript classvar class LP(athena.Livepage): javaScript = ('scripts/somescripts.js, 'scripts/otherscripts.js')
I end up with a static path to the scripts and they cling to Firefox.
How would you suggest to bring in additional (foreign, third party) libraries?
Do I have to use the naming kludge or is there a better way.
The correct way is to set the HTTP headers appropriately. I presume /scripts is a static.File - it would be nice generally if static.File had a way to set the Cache-Control values
On Tue, 16 Sep 2008 09:23:05 +0200, Werner Thie <wthie@thiengineering.ch> wrote:
Jean-Paul Jean-Paul Calderone wrote:
On Sat, 13 Sep 2008 10:00:24 +0200, lasizoillo <lasizoillo@gmail.com> wrote:
2008/9/13 Werner Thie <wthie@thiengineering.ch>:
Hi all
Tried to send this to divmod-dev@divmod.org, but post didn't show up after 12hours.
Might be an insanly stupid question but, is there a simple way to force the reload of JScript code for nevow LivePages via a server issued directive?
I never expire a javascript file, I change his url. If I have a script.js file, I import script.js?v=1, script.js?v=2, ... This force a client reload only with new deploys.
Athena effectively does this automatically. If JavaScript source files are changing but the browser isn't requesting the new versions, then there's a bug somewhere that needs to be fixed.
If JScript code is brought to the page via the javaScript classvar class LP(athena.Livepage): javaScript = ('scripts/somescripts.js, 'scripts/otherscripts.js')
`javaScript`? I don't know what that is - it's not a feature provided by Athena. Jean-Paul
participants (4)
-
Jean-Paul Calderone
-
lasizoillo
-
Phil Mayers
-
Werner Thie