You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use same pragma settings in WebContentGenerator as in AbstractView [SPR-9543] #14177
I attempted to use mvc:resource/ to map to some application PDFs. However, IE8 fails with the settings from preventCaching(). The fix is already used in AbstractView.generateDownloadContent(). It this was consistent, it would be a benefit.
I was able to get around it, by subclassing ResourceHttpRequestHandler, and wiring up my own beans.
Activity
spring-projects-issues commentedon Sep 10, 2012
Rossen Stoyanchev commented
I'm not sure what you mean by the "settings from preventCaching()".
spring-projects-issues commentedon Mar 23, 2015
Brian Clozel commented
ResourceHttpRequestHandlercan now be configured with flexible strategies for "Cache-Control" HTTP response headers.When serving generated resources, that should not be cached by public caches, one can use the following:
This will write a
"Cache-Control: no-store, private"header in HTTP responses.See #16413 for more details.