Lumen Static

Caching

Responses for versioned paths are sent with Cache-Control: public, max-age=31536000, immutable. Unversioned paths are cached for one hour.

Versioned paths

A path is versioned when it starts with /v<number>/ or contains a content hash. Such objects are treated as immutable: change the path instead of replacing the file.

Unversioned paths

Files outside versioned paths are revalidated with ETag after one hour. Use purging to refresh them sooner.

Cache key

The cache key is the full path. Query strings are ignored except for the v parameter.