jsp caching expire tag

satya - Tuesday, July 28, 2009 8:53:46 AM

here is how you set the expires tag


response.setDateHeader("Expires",0);

satya - Tuesday, July 28, 2009 8:54:46 AM

If I forward who is responsible for setting this?

If I forward who is responsible for setting this?

satya - Tuesday, July 28, 2009 8:55:15 AM

jsp forward dispatcher setting expires header

Search for: jsp forward dispatcher setting expires header

satya - Tuesday, July 28, 2009 10:36:29 AM

It is sufficient that target jsp set the expires header

As requests get dispatched, it is not necessary to set the headers in the first dispacther. It is sufficient that the final target set the headers. It does work. It may not even be allowed to set them if you are intending to dispatch.