i found thy solution method

Igor Sysoev is at rambler-co.ru
Tue Sep 8 15:26:41 MSD 2009


On Tue, Sep 08, 2009 at 06:35:11PM +0800, Chancey wrote:

> i found thy solution method:
> 
>         location ~* ^.+\.(htm|html|js|css|gif|png|jpg|xml)$ {
>                 if ($request_uri ~* ^.+\.(js|css)\?v=) {
>                         expires max;
>                 }
>                 expires 6h;
>         }

   location ~* ^.+\.(htm|html|gif|png|jpg|xml)$ {
        expires 6h;
   }

   location ~* ^.+\.(js|css)$ {

        if ($arg_v) {
            expires max;
        }

        expires 6h;
   }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list