Git Product home page Git Product logo

java-servlet-filters's Introduction

Java EE Cache Filter

Java EE Cache Filter provides a collection of common Servlet filters for Java web applications allowing you to transparently set HTTP cache headers in order to enable browser caching.

Why does cache matter?

From Best Practices for Speeding Up Your Web Site:

Web page designs are getting richer and richer, which means more scripts, stylesheets, images, and Flash in the page. A first-time visitor to your page may have to make several HTTP requests, but by using the Expires header you make those components cacheable. This avoids unnecessary HTTP requests on subsequent page views. Expires headers are most often used with images, but they should be used on all components including scripts, stylesheets, and Flash components.

Browsers (and proxies) use a cache to reduce the number and size of HTTP requests, making web pages load faster.

Available filters and docs

Click on the filter's name to access its documentation:

Filter Description
CacheFilter Allows you to enable browser caching for requested resources.
NoCacheFilter Allows you to completely disable browser caching for requested resources.
NoETagFilter Allows you to disable HTTP ETag headers set by most Java web containers (e.g. Tomcat).

Maven dependency

Add Java EE Cache Filter dependency to your pom.xml file:

<dependency>
    <groupId>com.samaxes.filter</groupId>
    <artifactId>cachefilter</artifactId>
    <version>VERSION</version>
</dependency>

System Requirements

Java EE Cache Filter works with Java EE 6 or newer.

License

This distribution is licensed under the terms of the Apache License, Version 2.0 (see LICENSE.txt).

java-servlet-filters's People

Contributors

samaxes avatar jyeary avatar

Watchers

Kianoosh Raika avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.