You can set HTTP request headers if you need to
var httpRequest = new XMLHttpRequest();
httpRequest.open('GET', 'file.xml', true);
httpRequest.setRequestHeader('Cache-Control',
'desired cache value here')
if you send
httpRequest.setRequestHeader('Cache-Control', 'public'); or
httpRequest.setRequestHeader('Cache-Control', 'max-age=3600, public');
you get :
Cache-Control: (max-age=3600,) public, no-cache
Firefox just adds to any Cache-Control header the 'no-cache' string
This apparently disables the cache.
(about:config cache setting is ignored.)
Watching the protocol with the tamper extension you can see
that firefox sets LOAD_BACKGROUND, LOAD_BYPASS_CACHE and
INHIBIT_CACHING flags.
LOAD_BACKGROUND seem to be related to async mode of images and
http_requests
any solutions?
Andres Obrero