How can i set js, css, image file expiration in spring web application.I tried <mvc:resources mapping="/resources/**" location="/resources/" cache-period="31556926"/>
but still it send a request from browser and server is responding with 304
means it not using browser cache if i am not wrong. and also at the end it sending a HTTP request also to the server so i dont think this is of any useful purpose.
Am i missing something or there are other was ? Response header
Cache-Control:max-age=31556926, must-revalidate
Date:Wed, 03 Dec 2014 03:17:24 GMT
Expires:Thu, 03 Dec 2015 09:06:11 GMT
Pragma:no-cache
Server:Apache-Coyote/1.1
X-XSS-Protection:1; mode=block