diff options
author | 2023-02-15 11:44:30 +0100 | |
---|---|---|
committer | 2023-02-15 11:44:30 +0100 | |
commit | fd62847c83334e13b9e5fccb5a6482ac06d9de94 (patch) | |
tree | 89ce990227a1c86e8ba5fa156b9219dd5b14759d /internal/api/fileserver/fileserver.go | |
parent | [chore] Webkit frontend fixes (#1492) (diff) | |
download | gotosocial-fd62847c83334e13b9e5fccb5a6482ac06d9de94.tar.xz |
[docs] Fix nginx fileserver caching example (#1506)
* [bug] Fix nginx fileserver caching example
This updates the example to ensure the nginx proxies the request on to
GTS if the file is not found on disk. This can happen due to media
pruning.
* [chore] Set cache-control in nginx to private
This makes the header match with the backend. For things from the
fileserver it may not be appropriate for anything other than a private
cache (i.e the client) to cache things.
Diffstat (limited to 'internal/api/fileserver/fileserver.go')
0 files changed, 0 insertions, 0 deletions