After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665575 - add caching for static data
add caching for static data
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: extensions.gnome.org
current
Other All
: Normal normal
: ---
Assigned To: Shell extensions maintainer(s)
Shell extensions maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-12-05 09:21 UTC by Olav Vitters
Modified: 2011-12-05 09:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olav Vitters 2011-12-05 09:21:03 UTC
add expires header configuration for at leat the css and js and maybe everything under /static to avoid querying the server again and again

looking at the hits, seems clients often retrieve the same file each time

btw: it is very popular :) 12K hits in 20min.
Comment 1 Olav Vitters 2011-12-05 09:41:48 UTC
added the following:

        <Location /static/>
            ExpiresActive On
            ExpiresByType image/png "access plus 1 week"
            ExpiresByType application/javascript "access plus 1 week"
            ExpiresByType text/javascript "access plus 1 week"
            ExpiresByType text/css "access plus 1 day"
            Header set Cache-Control "public"
        </Location>