Java Servlet Cache megoldások

….

Two Servlet Filters Every Web Application Should Have
Pages: 
123

Unfortunately, there is really no good way you can tell if content displayed by your browser was GZIP compressed or not. Part of the process working is that it is unnoticeable if the content was compressed or not. In order to test out the compression, we need to spoof some HTTP requests and see what exactly is returned.

This can be done relatively easily by tossing some code in a JSP; here is such a JSP.

…..

OSCache – OSCache – CacheFilter Tutorial

Introduction

OSCache comes with a servlet filter that enables you to transparently cache entire pages of your website, and even binary files. Caching of binary files is extremely useful when they are generated dynamically, e.g. PDF files or images. In addition by using the last modified header the transaction overhead and server load is reduced excellently which speed ups the server response time.

How to configure OSCache to cache entire servlet responses is described in the configuration page of the CacheFilter. This short tutorial should demonstrate how to make your web site more responsive, and save load on your server. Using the CacheFilter the user will appreciate a faster loading site and will visit it more often.

Improvements

Major improvements have been made to the CacheFilter in the releases 2.2 and 2.3:

  • Default initialization of the last modified header which reduces transaction overhead and server load
  • CRON expressions to expire content at specific dates and/or times
  • Preserving more http headers, e.g. the expires header
  • Special handling for fragments of a page
  • Custom cache key generation by subclassing CacheFilter or by implementing a special interface
  • Custom cache groups generation by subclassing CacheFilter or by implementing a special interface
  • Support of GZip filters in the filter chain
  • Avoids session creation for application scope pages
  • Reduced memory consumption
  • Multiple matching cache filters won’t dead-lock the response anymore
  • The cache won’t be serve the same response twice before the client begins to cache it anymore
A bejegyzés kategóriája: Nincs kategorizálva
Kiemelt szavak: , , .
Közvetlen link.

Elnézést, a hozzászólás ezen a részen nem engedélyezett.