Problems setting ttl on single image

I’m trying to enable a 10 minute autorefresh for my webcam which you can
see at http://www.diamondharbour.org.nz/Local-Weather.html

Server runs nginx 1.4.4 ( and an ancient CMS called Etomite ).

Here’s the WPT result http://www.webpagetest.org/result/131229_HV_MK2/

Here’s a snippet of my config…

    location = /assets/Photo\ Gallery/Weather/current\.jpg {
            expires 10m;
            log_not_found off;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
            expires max;
            log_not_found off;
    }

Why is is not setting a 10 minute expiry - the webpagetest report should
pick up on it??? I’m sort of expecting that it may have something to do
with the space in the URL?

Any pointers gratefully received (:

Steve

Steve H. BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

Here’s a snippet of my config…

    location = /assets/Photo\ Gallery/Weather/current\.jpg {
            expires 10m;
            log_not_found off;
    }

The “location =” syntax does not use regular expressions. You may also
want to surround the string with quotes if it contains spaces rather
than escaping spaces.

On Mon, 2013-12-30 at 02:05 +0100, Richard S. wrote:

than escaping spaces.

Yup, that fixed it thanks!

Cheers,

Steve

Steve H. BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa

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