Welcome! Log In Create A New Profile

Advanced

Re: Rewrite rule for cache busting URLs

June 09, 2010 12:13PM
Thanks Igor!

I should have been more specific though. Sometimes the same resource is referenced in a versioned _and_ non-versioned form. Also, the versioning applies to many resource locations.

So we would need many config entry pairs like this:

[code]
location ~ ^/r\d+(/some/resources/.+)$ {
alias /path/to/resources/$1;
add_header Cache-Control 'public, max-age=2592000'; # 30 days
}

location ^~ /some/resources {
alias /path/to/resources;
}

...
[/code]

We can do that, but it makes the config harder to maintain.

Another related question: if we configure FastCGI access to our application in a separate file and include that same config file in many location {} blocks with "include" will that cause any problems?

Thanks again!
Subject Author Posted

Rewrite rule for cache busting URLs

bkirkbri June 09, 2010 11:21AM

Re: Rewrite rule for cache busting URLs

Igor Sysoev June 09, 2010 11:32AM

Re: Rewrite rule for cache busting URLs

bkirkbri June 09, 2010 12:13PM

Re: Rewrite rule for cache busting URLs

Igor Sysoev June 09, 2010 02:36PM

Re: Rewrite rule for cache busting URLs

bkirkbri June 09, 2010 03:56PM

Re: Rewrite rule for cache busting URLs

Igor Sysoev June 09, 2010 04:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready