spring - How to update browser cache in java -


i'm trying implement browser cache in application, working fine i'm not able add newly updated part browser cache. want update part browser cache being updated within existing cache.

code used caching is:

<bean id="springsecurityfilterchain" class="org.springframework.web.servlet.mvc.webcontentinterceptor">     <property name="cacheseconds" value="2100" />     <property name="useexpiresheader" value="true" />     <property name="usecachecontrolheader" value="true" />     <property name="usecachecontrolnostore" value="true" />     <property name="cachemappings">         <props>              <prop key="/**/*.html">2592000</prop>             <prop key="/**/*.htm">2592000</prop>             <prop key="/**/*.jpg">2592000</prop>             <prop key="/**/*.gif">2592000</prop>             <prop key="/**/*.css">2592000</prop>             <prop key="/**/*.js">2592000</prop>         </props>     </property> </bean> 

thanks in advance.

i have come across @cacheable annotation available in spring framework. think want achieve. have never used in application have studied it.

for further details , example please refere link.

and there 1 more feature spring framework called shallowetagheaderfilter. please refere link know more it.

hope helps you. cheers.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -