Files
directus/api/src/middleware
keesvanbemmel d11c59462f Adds x-directus-cache response header with HIT value (#12732)
* Adds x-directus-cache response header with HIT value

* Added ENV var for cache header and MISS, UNCACHEABLE

* Rename CACHE_HEADER_KEY -> CACHE_STATUS_HEADER

Tad opinionated, but I feel like it describes the functionality slightly better

* Return miss consistently

Uncacheable doesn't quite describe what's happening. The user actively requests the cache to be skipped, which should result in an expected miss. The value isn't un-cacheable, the cache is skipped on purpose

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-04-14 13:42:10 -04:00
..
2020-09-08 13:59:40 -04:00
2022-03-17 15:43:45 -04:00
2021-02-11 18:14:55 -05:00
2021-04-29 12:11:43 -04:00
2021-08-03 17:30:36 -04:00