Roundup Tracker - Issues

Issue 2550991

classification
Some mechanism to set expiration header or max age for static resources
Type: resource usage Severity: normal
Components: Web interface Versions: devel
process
Status: fixed fixed
:
: rouilj : rouilj
Priority: normal :

Created on 2018-08-11 02:26 by rouilj, last changed 2021-12-09 22:47 by rouilj.

Messages
msg6179 Author: [hidden] (rouilj) Date: 2018-08-11 02:26
The roundup-server doesn't set any cache control (max-age, expires)
headers on static files.

This means javascript, image and other static resources have to be
retrieved on each page load.

I think for initial implementation setting a max-age by
data type:

  .js text/javascript maxage=2weeks,
 .css text/css maxage=2months

is sufficient for @@file assets and attached assets.

Also setting a max-age for attached assets otherwise not specified
(e.g. a file attached to an issue accessed via: 
https://mytracker.example.com/demo/file1/android-chrome-192x192.png)
should work for initial implementation.
msg7411 Author: [hidden] (rouilj) Date: 2021-12-09 22:39
changeset:   5980:54d0080769f9

implemented the mechanism in the 2.0.0 release.

changeset:   6546:c58c7cd31243

implements the settings for javascript and css files.

closing.
msg7412 Author: [hidden] (rouilj) Date: 2021-12-09 22:47
Also as a note this implements Cache-Control with max-age settings. It does not
implement the Expires header.
History
Date User Action Args
2021-12-09 22:47:22rouiljsetmessages: + msg7412
2021-12-09 22:39:07rouiljsetstatus: new -> fixed
assignee: rouilj
resolution: fixed
messages: + msg7411
2018-08-11 02:26:05rouiljcreate