Re: [Xsltforms-support] Two questions: about success and failure of PUT, and about cache invalidati
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2013-02-22 19:22:53
|
On Feb 22, 2013, at 11:07 AM, C. M. Sperberg-McQueen wrote: > > On Feb 22, 2013, at 11:01 AM, Alain Couthures wrote: > >> ... > >>> My question about evading an over-enthusiastic cache remains an open question. >> This is a well-known XMLHttpRequest issue and many developers just add a dummy parameter, such as the current date and time, to the HTTP request filename so the browser always consider it different. > > > Brilliant. Thank you, that should work. I'll do that right now. > For the record, I also found another way that works in my situation. The server for this project is running Apache, and I was able to persuade Apache to set the Expires header by putting the following into an .htaccess file in a directory located above all the documents where stale copies were causing us harm: ExpiresActive on ExpiresDefault "access plus 60 seconds" -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |