Ensure client don't cache plugin translations file #6397
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Feature Request ✨
Describe the problem to be solved
Currently plugin translations are served from /plugins/translations/{locale}.json There's no
Cache-Control
header nor content hash in the URL, which may cause clients to unexpectedly cache the file with stale content.Describe the solution you would like
Since translations are always loaded they can be served direct with the HTML file. If that's not possible, add a content hash to the URL and set Cache-control max-age to one year.
The text was updated successfully, but these errors were encountered: