librelist archives

« back to archive

mod_expires

mod_expires

From:
Jonathan Zempel
Date:
2011-03-10 @ 19:13
Has anyone been able to config mod_expires for your static content on
Apache?  My settings seem to be ignored.  By the way, this is true for more
than just the "expires" stuff.  As a test I added "Header set X-Test 'test
header'" to my virtualhost config.  The X-Test header shows up for HTML
template content delivered by flask, but not for anything under a "static"
folder.  Same goes for "gzip".  It feels like Werkzeug's
SharedDataMiddleware might have something to do with this, but I figured I'd
ask before I dig any further.  My apache config is basically straight out of
the mod_wsgi documentation for Flask (
http://flask.pocoo.org/docs/deploying/mod_wsgi/).