<div>The location snippet below works except the expiration header is not being set.  The request is made using this kind of URL:</div><div><br></div><div>/assets/abcdef/js/my.js</div><div><br></div><div>If the JS file is not found in memcached, it gets redirected to static.php which loads the static file into memory.  Do we need to include the headers in the file itself as its being loaded from memcached?</div>
<div><br></div><div>location ~ /assets/([a-zA-Z0-9]+)(/.+) {</div><div>                expires max;</div><div>                set $memcached_key &quot;$1_$2&quot;;</div><div>                memcached_pass     localhost:11211;</div>
<div>                error_page         404 =200 /libraries/asset_filter/client/static.php?hash=$1&amp;uri=$2;</div><div>}</div><div><br></div><div>Thanks</div><div><br></div>