Skip to content

Releases

5.1

Choose a tag to compare

@dougboberg dougboberg released this 24 Jul 16:28

Dropwizard 5.0.2 support

Added simple constructor to pass in cache days without needing to specify every constructor possibility.

    // Example: 365 day cache, serving files from the server resource path '/images' on the web as '/static_images'
    bootstrap.addBundle(new CacheableAssetsBundle(365, "/images", "/static_images"));

2.0

2.0

Choose a tag to compare

@dougboberg dougboberg released this 20 May 13:25

Tiny extension of the standard Dropwizard AssetsBundle which adds HTTP Header cache fields to the HTTP Response of static asset resource files. The local static assets can be mapped to an arbitrary URL path, allowing items to be served from a different 'folder' from where they're actually stored.

Add the following to your project's Maven pom.xml

<!-- Add the JitPack repository -->
<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<!-- Add the dependency -->
<dependency>
    <groupId>com.ikonetics</groupId>
    <artifactId>dropwizard-cacheable-assets</artifactId>
    <version>1.0</version>
</dependency>