How can i write this location?

Chancey chanceycn at
Tue Sep 8 14:08:01 MSD 2009

Hi guys!

How to set expires the URL like and
only match URL with "?v="

i write this, but can't invalidation :

        location ~* \.(js|css)\?v=.* {
                expires 1y;


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list