Serve your static assets (and webapps) with our new library

Our new library brings static asset cache at the developers fingertips.

For static files shipped with your Enonic app, you get full control of cache headers - and the endpoint they are served on. This can for instance be used to serve static content that is hashed and chunked with webpack - combined with perfect caching. As a bonus, the library is also capable of serving index.html files when performing directory level requests. This simply means you can bundle and ship full-fledged webapps via Enonic - no 3rd party required :slight_smile: .

For more details check out the following:

2 Likes

I’ve added TypeScript support for lib-static in the latest release of enonic-types.

3 Likes