Java Tips & Tricks: Disabling Content Caching with Spring | Codementor
Have you ever checked some situation on your developed web application like, if you pressed the back button of your browser after logging in, what happened?
Well, if your web app was properly developed, you'd expect that it would redirect you to your after-logged-in-page (usually the Homepage) instead of showing the login form page.
However, the problem is that when you press the back button, your browser usually doesn't send another GET request to the server. Instead, it views the web page from locally cached responses. This is called browser caching/HTTP caching, it could happen not only in a login page, but in any page. This behavior is actually controlled by the Cache-Control header.
Read full article from Java Tips & Tricks: Disabling Content Caching with Spring | Codementor
No comments:
Post a Comment