problems setting ttl on single image...

Steve Holdoway steve at greengecko.co.nz
Mon Dec 30 00:03:28 UTC 2013


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 Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa



More information about the nginx mailing list