3 Dec
2013
3 Dec
'13
3:24 a.m.
Hi, I've using Dancer2 with Plack/mod_perl with Apache (I was previously using Dancer with CGI, but can't get CGF or FCGI to work with Dancer2). How to I set my static files to report '304 - Not modified' to the browser? When I use Firebug to look at all the file load times and turn browser caching on, all the files from CDNs report '304 - Not modified', but all those served through Dancer report as '200' and hence are transferred each time. This is fine for the dynamic pages, but unnecessary for the static files (logos, css, javascripts). Thanks, Matt