how to get apache mod_cache work with mod_wsgi (django)?
- by harmv
I thought i'd speed up my django projects, by letting apache doing some caching for me.
Unfortunately I see that apache never caches my dynamic pages.
Has mod_cache problems with mod_wsgi served code ?
My apache config:
<VirtualHost *:80
ServerName myserver.com
CacheEnable mem /
# for testing only
CacheIgnoreQueryString On
CacheIgnoreCacheControl On
WSGIDaemonProcess aname processes=1 threads=25
WSGIProcessGroup aname
Alias /media/ /home/harm/projects/test/media/
WSGIScriptAlias / /home/harm/projects/test/wsgi.py
The response does have the correct caching headers:
Content-Length 2647
Content-Encoding gzip
Vary Accept-Encoding
Cache-Control public, max-age=3600
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Content-Type application/x-javascript
Am I missing something ?