Caching static assets if present

Adam Zell zellster at gmail.com
Wed Sep 3 09:26:11 MSD 2008


Hello,

On Tue, Sep 2, 2008 at 5:55 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
> <snip>
>


> Named locations was introduced specially for such things.  Try the
> following:
>
> location /static/ {
>    ...
>    error_page 404 = @fallback;
> }
>
> location @fallback {
>    proxy_pass ...;
> }
>
> Maxim Dounin
>
>
Great, thank you for the pointer.  Is this location feature documented
anywhere on the wiki?

-- 
Adam
zellster at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080902/7a720535/attachment.html>


More information about the nginx mailing list