Consider cache-control: public
for /assets
#23952
Labels
performance/cpu
type/enhancement
An improvement of existing functionality
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
As requested on Discord, I think it makes sense to have the assets that have
contenthash
in their filename cacheable by intermediary proxies viacache-control: public
to take off some load from the gitea process.For files that do not have
contenthash
likeserviceworker.js
and more, I'm not sure. I think we may have to exclude them or (ideally) change them to have acontenthash
.Also I do think we can raise the default cache duration for
contenthash
assets significantly. They are essentially immutable.The text was updated successfully, but these errors were encountered: