Rewrite rule ignored by webpagetest?
|
01-08-2021, 04:22 AM
Post: #1
|
|||
|
|||
Rewrite rule ignored by webpagetest?
In our Windows Server 2019 IIS 10 site's web.config using HTTP/2 protocol we have a rewrite rule:
Code: <rule name="Prioritize Brotli" enabled="true"> Code: origin: https://my.domain.com |
|||
01-12-2021, 06:23 PM
Post: #2
|
|||
|
|||
RE: Rewrite rule ignored by webpagetest?
I don't usually work on IIS machines and there were too many unknowns for me to narrow down the issue very much but some quick research combined with my experience with Linux servers led me to find these points to research further:
- IIS 10 has differences between 2 different versions and they handle compression settings differently (and the ordering of configuration directives matters). - IIS won't compress assets if it is computationally too expensive (an article suggested it would need to be using less than 80% CPU to honor compression requests). - Using and compressing fonts have lots of weird quirks like: (on Linux servers) the files themselves have to be set to 'executable'; only some font formats can be compressed; Open TrueType fonts seem to have 2 different MIME types (`font/otf` and `application/x-font-otf`) so double check that either/both is configured. - In Apache and Nginx, an admin typically has to restart or reload the server before configuration changes take effect, does IIS have the same requirement and if so, did you do so? |
|||
01-15-2021, 09:31 AM
Post: #3
|
|||
|
|||
RE: Rewrite rule ignored by webpagetest?
Accept-encoding will be the compression methods that the user's browser can use. Is the response content-encoding from the server showing as br?
Chrome should use br if it's available. You'll want to keep the other methods in place as fallbacks for other browsers that only except other methods. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)