Skip to content

2.0

Choose a tag to compare

@dougboberg dougboberg released this 20 May 13:25
· 2 commits to main since this release

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>