Put Expires or Cache-Control=no-cache headers into Comet, REST and Ajax response
Currently certain GET requests may get cached by proxies... make sure REST, Comet and Ajax requests have explicit cache control headers.
Leave a comment
(In revision:c12661f1e352f1d1b74678f002e9bc3819c2604a) Closes #538. The correct cache control headers are included in responses. Also cleaned up redirect code in Wizard to deal correctly with the back button
Branch: master
Branch: master
So how do I set my own expires and cache-control to rest?
I have something like:
InMemoryResponse(imag.imag.is, List("Content-Type" -> imagMime.is,
"Cache-control" -> "Public",
"Pragma" -> "Public",
"Expires" -> sdf.format(exp.getTime()),
And the result is not even close, Cache-Control Public, no-cache; private; no-store and exp is now()
I have:
Lift version 2.1-M1 built on Thu Aug 05 02:19:55 EEST 2010
Should I make a ticket of this?
I have something like:
InMemoryResponse(imag.imag.is, List("Content-Type" -> imagMime.is,
"Cache-control" -> "Public",
"Pragma" -> "Public",
"Expires" -> sdf.format(exp.getTime()),
And the result is not even close, Cache-Control Public, no-cache; private; no-store and exp is now()
I have:
Lift version 2.1-M1 built on Thu Aug 05 02:19:55 EEST 2010
Should I make a ticket of this?