mardi 3 mars 2015

Does caching images with servlet work?

I used a solution for caching images that founded here http://ift.tt/1AWEUpv



<filter>
<filter-name>CacheControl</filter-name>
<filter-class>filters.CacheControlFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>CacheControl</filter-name>
<url-pattern>*.jpg</url-pattern>
<url-pattern>*.jpeg</url-pattern>
<url-pattern>*.png</url-pattern>
<url-pattern>*.gif</url-pattern>
</filter-mapping>


But seems it does not work, because every time page opens the image reloading. For example http://ift.tt/1zFCsyI


Does caching realy work?


Aucun commentaire:

Enregistrer un commentaire