This content has been marked as final. Show 5 replies
Don't know why you must have your own flavor of http headers. The "holy trinity" that you will find documented all over the net when you Google for "java jsp no cache" is the following:
That has worked just fine for me all these years; no need for any meta tags either. You can pepper this all over the place, but you could also employ a filter that works on all (or a subset of) .jsp pages to automatically set these headers. That makes it a bit more manageable.
response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", -1);
Initially i tried with the basic suggestion that you provided.But the issue still persists.Then went for the above fix.Still chaching
Do we need to implement in any other way since here velocity template is used?
You don't have any kind of proxy server in there right? I would also try some sort of plugin or tool which allows you to inspect which HTTP headers are actually being communicated, otherwise it remains guesswork what might or might not be going on.
There is no other proxy server.Just want to know what is the impact if proxy server was used?
proxy server can also cache and according to bad configuration might do that even when it is not wanted.