directus / directus/directus

Don't influence Cache-Control through auto-purge

Open
#21,907 1 comment 1 reaction 0 assignees View on GitHub
CRUD Engine Improvement Performance Querying
Dominant language
TypeScript
Stars
37.9k
Forks
4.9k
Avg merge
3d 21h
Merged PRs (30d)
36

Description

Currently, the auto purge env var effectively disables all cdn / browser caching:

https://github.com/directus/directus/blob/90476ccf175f440533e899c2fac37786716b0cfb/api/src/utils/get-cache-headers.ts#L28

We should remove this check in favor of having the cache control headers exclusively controlled through the cache control env vars.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.