Welcome! Log In Create A New Profile

Advanced

Expiration header not being set?

February 18, 2011 06:54PM
The location snippet below works except the expiration header is not being
set. The request is made using this kind of URL:

/assets/abcdef/js/my.js

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?

location ~ /assets/([a-zA-Z0-9]+)(/.+) {
expires max;
set $memcached_key "$1_$2";
memcached_pass localhost:11211;
error_page 404 =200
/libraries/asset_filter/client/static.php?hash=$1&uri=$2;
}

Thanks
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Expiration header not being set?

iberkner February 18, 2011 06:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready