Files
Gaetan SENN 6c89754d78 Add opt-in must-revalidate and ETag headers for assets via ASSETS_CACHE_REVALIDATE env var (#27027)
* feat: add cache revalidate for assets

* build: add changeset

* refactor: check conditional headers before loading asset from storage

* fix: add env variable to type-map

* fix: use admin access to get modified_on field

* fix: use admin file service if modified_on return null

* fix: remove default config to env-stub

* refactor: avoid double permission validation

* refactor: move logic to bb testing

* refactor: test using conditional ASSET_CACHE_REVALIDATE value

* remove redundant accountability:null

---------

Co-authored-by: judda <44623501+ComfortablyCoding@users.noreply.github.com>
2026-04-15 15:14:16 -04:00
..
2025-01-02 15:37:30 +01:00
2026-03-30 12:29:03 -04:00

@directus/env

Environment variable configuration extraction for Directus.

Description

This package exports utilities for environment variable configuration extraction that are used within Directus, an open-source headless CMS.

For more information about Directus, visit the official website.

License

This package is licensed under the MIT License. See the LICENSE file for more information.

Additional Resources