Two Servlet Filters Every Web Application Should Have
Subject:   null suffix on CacheFilter files?? are they working?
Date:   2003-12-10 17:37:15
From:   anonymous2
I just loaded in these filters (the GZIPFilter is amazing - thank you!) and the CacheFilter is generating files correctly in my applications tmp directory but they all have "null" at the end - so it would be like:

From my simple tests of how long it takes a page to load, the times are identical to how fast they were without the CacheFilter (these pages are retrieving data from an RDBMS).

Thanks for any advice.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • null suffix on CacheFilter files?? are they working?
    2003-12-11 22:40:33  jfalkner [View]

    Yes. If you check out the code, the null value is coming from a check for i18n specific headers. The filter is designed to work with a website that uses the same URL (e.g. index.jsp) for several different languages. The technique used is to persist i18n specific headers as part of the cached file's name. The null is a result of an optional HTTP header that wasn't used, and it should prevent the cache filter from working properly.