4 ms·
I think that regex matches any string as well - ^ simply matches the start of a line and all strings have a start. It might also be more performant because the
by njs12345 16y ago
I think that regex matches any string as well - ^ simply matches the start of a line and all strings have a start.
It might also be more performant because the regex engine doesn't consume the whole string before finding a match..
- mnutt 16y agoThat is exactly right. See "Taxing Rewrites" on http://wiki.nginx.org/Pitfalls http://wiki.nginx.org/Pitfalls