how to get apache mod_cache work with mod_wsgi (django)?
Posted
by harmv
on Stack Overflow
See other posts from Stack Overflow
or by harmv
Published on 2010-04-28T23:54:03Z
Indexed on
2010/04/28
23:57 UTC
Read the original article
Hit count: 224
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 ?
© Stack Overflow or respective owner