Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use same pragma settings in WebContentGenerator as in AbstractView [SPR-9543] #14177

spring-issuemaster opened this issue Jun 25, 2012 · 2 comments


None yet
2 participants
Copy link

commented Jun 25, 2012

Scott Carlson opened SPR-9543 and commented

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.

Affects: 3.1.1

This issue is a sub-task of #16413

Issue Links:

  • #14178 Expose handler bean in ResourcesBeanDefinitionParser.

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 10, 2012

Rossen Stoyanchev commented

I'm not sure what you mean by the "settings from preventCaching()".


This comment has been minimized.

Copy link
Collaborator Author

commented Mar 23, 2015

Brian Clozel commented

ResourceHttpRequestHandler can 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:

public void addResourceHandlers(ResourceHandlerRegistry registry) {

This will write a "Cache-Control: no-store, private" header in HTTP responses.

See #16413 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.