Need to add expires header conditionally based on mime types

Host DL hostdl at
Fri Jun 14 03:05:42 UTC 2013

If you handle your js, css and images by php scripts you can use header
function to send out Expires and Cache-Control directives


header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list