Posts Tagged: restlet

  • 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:

     

  • Programming

    Using Webjars without Servlet 3 on Google App Engine (GAE)

    Posted on by

    I recently stumbled upon what is just about the best thing since I first discovered the wonders of maven – the ability to add javascript dependencies in your pom.xml using webjars.  Like this:

    Maven will manage their sub-dependencies and  your web pages can access the scripts direct from the jars.  Lovely.  Sign me up!  Except… Read more »