Controlling the cache headers for a RESTlet directory

My previous post described how to serve webjars with RESTlet.  This post will describe how to add caching so that users don’t swamp your servers with requests.

Put simply, you put a filter in the chain before the directory and modify the HTTP headers of successful requests.  Like so:


Written by Tom

Leave a Reply