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

MappingJacksonJsonView should add headers for no-caching [SPR-7031] #11693

Closed
spring-projects-issues opened this issue Mar 24, 2010 · 2 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

André Pinheiro opened SPR-7031 and commented

This problem tends to be more serious on IE8, since the AJAX requests with the same URL are cached.

The MappingJacksonJsonView could have a boolean "no-cache" which if set to false does not add the headers to the response. I think when using AJAX the expected behaviour is not a cached response.

I will upload the created class since I don't know how to submit patches (btw can anyone point me to an how-to?).


Affects: 3.0.1

Attachments:

Referenced from: commits 6f2062f

@spring-projects-issues
Copy link
Collaborator Author

André Pinheiro commented

Would be very gentle if someone could commit this still for the 3.0.2 release.
If not, I guess no "biggie".

@spring-projects-issues
Copy link
Collaborator Author

Arjen Poutsma commented

Done. I've named the property 'disableCaching'.

Thanks for the patch!

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.2 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants