Posts Tagged: caching

  • Programming

    Controlling the cache headers for a RESTlet directory

    Posted on by

    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: