[Opensymphony-oscache] HTTP Response Caching

Russ Ray <[email protected]> Wed, 01 Jun 2005 16:18:03 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <23620189.1117660831731.JavaMail.os-j2ee@opensymphony01.contegix.com>
One of the things OSCache can provide is HTTP Response Caching.  This is accomplished by using a filter.  The way we can accomplish this is setting the web.xml up in the following way.

<filter-mapping>
    <filter-name>CacheFilter</filter-name>
    <url-pattern>http://localhost:9080/application/task.do?method=searchView</url-pattern>
    </filter-mapping>


My question is can I limit the  url pattern in such a way that I can make the pattern generic enough for use without server information, such as:

  <filter-mapping>
    <filter-name>CacheFilter</filter-name>
    <url-pattern>/application/task.do?method=searchView</url-pattern>
    </filter-mapping>


Thank you for taking your time to read my message.

Russ

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=2843&messageID=7753#7753