django - Some questions about caching -


i using apache webserver django application. how, set caching images , css? ran webpagetest on website, , says "expiration not specified" css , images. but, when use firebug, css files, firebug shows requests , response headers, in cache tab shows

device: disk

and no requests shown images. so, bit confused. whats happening here.?

i have config django static files in apache vhost :

    alias /static/ "/home/django/projectname/static/"     <directory "/home/django/projectname/static">             order allow,deny             allow             options +followsymlinks             expiresactive on             expiresbytype image/gif a1209600             expiresbytype image/jpeg a1209600             expiresbytype image/png a1209600             expiresbytype text/css a1209600             expiresbytype text/javascript a1209600             expiresbytype application/x-javascript a1209600             <filesmatch "\.(css|js|gz|png|gif|jpe?g|flv|swf|ico|pdf|txt|html|htm)$">                        contentdigest on                        fileetag mtime size             </filesmatch>     </directory> 

remember not use django static.serve view in production.

also use ctrl+shift+r full reload in firefox (override cache)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -