Tuesday, June 2, 2009

Prevent browser cache of JSP pages using Struts

I am sure this is addressed in a million places on the net but this is my blog, so there. Simply set the 'nocache' property to 'true' on the 'controller' in struts-config.xml (I am using Struts 1/classic).

[todo: add the example XML and the example HTTP Response before/after]