Caching issue when using JSPF

Do the changes you make to JSPF not reflect immediately, until you change something in the main jsp file which has the include statement?

this is due to the use of include.include directive causes your Web browser to cache complete pages so it wont get updated until the cache times out or there is a change in the main jsp.

to avoid this use jsp:include derivative instead .

As a rule of thumb use include for static pages which do not change and use jsp:include for dynamic pages.


see here for more info on this.





About this entry