Welcome! Log In Create A New Profile

Advanced

Re: understanding break and add_header combo

Francis Daly
May 02, 2013 04:32PM
On Thu, May 02, 2013 at 11:53:12AM -0400, flarik wrote:

Hi there,

> location ~ ^/assets/ {

> location ~* \.(ttf|ttc|otf|eot|woff)$ {

> Now the add_header stuff for webfonts is never set, and I do not understand
> why break has a part in this. When I remove break; it works,
> when i put the font location stuff before location ~^/assets/ it also
> works.

What request do you make? What response do you get? What response do
you expect?

In nginx, one request is handled in one location. So I expect that no more
than one set of add_header directives will apply. And as you only show
regex locations, if the first one matches then it is the one that is used.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

understanding break and add_header combo

flarik May 02, 2013 11:53AM

Re: understanding break and add_header combo

Francis Daly May 02, 2013 04:32PM

Re: understanding break and add_header combo

flarik May 03, 2013 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready