tomcat7 cach filter

Language/JAVA 2013. 12. 3. 19:06

http://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Expires_Filter


web.xml

<filter>
 <filter-name>ExpiresFilter</filter-name>
 <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
 <init-param>
    <param-name>ExpiresByType image</param-name>
    <param-value>access plus 10 minutes</param-value>
 </init-param>
 <init-param>
    <param-name>ExpiresByType text/css</param-name>
    <param-value>access plus 10 minutes</param-value>
 </init-param>
 <init-param>
    <param-name>ExpiresByType application/javascript</param-name>
    <param-value>access plus 10 minutes</param-value>
 </init-param>
</filter>
...
<filter-mapping>
 <filter-name>ExpiresFilter</filter-name>
 <url-pattern>/*</url-pattern>
 <dispatcher>REQUEST</dispatcher>
</filter-mapping>


'Language > JAVA' 카테고리의 다른 글

정적 변수 정적 메소드 (static)  (1) 2014.01.07
Java에서 System.getProperty()  (2) 2014.01.02
jdk7 file write  (0) 2013.11.14
double 지수 표현 제거  (0) 2013.11.13
POI를 이용한 Excel ( *.xls, *.xlsx ) 읽기  (0) 2013.11.13
: