XUL’s cache
Remote web XUL apps just don’t seem to check the files for updates, even when you hit reload(shift-reload works). It doesn’t make it any easier for me either. Not when you’ve got a live app and a boss that wants the new features put in ASAP.
But this site rocks.
Ah well, back to the saltmine.
Postscript: George gave me the idea to add the proper headers to the output(duh). He did it with PHP(see comments) but my XUL is static and data is added via JS, so I used Apache. =) Thanks!
All I did was add the following to the appropriate domain:
Header add Cache-Control “no-store, no-cache”
I should’ve known to do that, ah well. The app takes forever to load now, but it’s always up to date(and once loaded, it doesn’t have to pull out any files or be reloaded again, very cool). After the first milestone is done I’m making it an extension so it’s locally installable, and will be faster for the clients to load.
Comments
Comment from George
Time: March 22, 2005, 3:06 pm
I guess I could add a Header(”Cache-Control”,”no-store, no-cache”);
Anyway, thanks for the nice words!
George
Comment from George
Time: March 22, 2005, 4:12 pm
Hey Joseph
Maybe it is a little drastic to refresh all the resources, loading speed will suffer.
I found this document very interesting about caching:
http://www.mnot.net/cache_docs/
I guess caching and only refreshing resources changed since last modified would be a better option. To combine fast loading with updating when needed.
Hope that helps, I am not cahing expert.
Others may point us to better solutions.
![]()

Write a comment