Expiration header not being set?

The location snippet below works except the expiration header is not
set. The request is made using this kind of URL:


If the JS file is not found in memcached, it gets redirected to
which loads the static file into memory. Do we need to include the
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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs