atomicdata-dev/atomic-server

Loosen Cache-control header

joepio opened this issue · 1 comments

joepio commented

Currently, AtomicServer returns: Cache-Control: no-store, no-cache, must-revalidate, private.

This is perhaps a tad too restrictive, it slows down apps unnecessarily

joepio commented

So there is a reason for this exissting no-cache stuff: #137

In short: the the browser caches json responses and shows these instead of the html page.

Also, this header is probably not that bad, as it only affects resource routes.

The /download endpoint seems to give the correct etag etc:

Screenshot 2024-10-10 at 13 52 16