Need to add expires header conditionally based on mime types

Host DL hostdl at gmail.com
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

example:

<?php
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: <http://mailman.nginx.org/pipermail/nginx/attachments/20130614/37935070/attachment.html>


More information about the nginx mailing list