-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Description
In 6.2, the example snippet shown in the Redirecting to a resource section uses the pathExtension() request predicate to match requests for static resources.
In the same section in 7.0 (following the deprecation of the predicate), use of the pathExtension() predicate was removed, but the extensions list was not.
While the unused file extensions list can cause some confusion and should be removed, I'm more interested in the recommended way to achieve the same functionality as before, matching a request by its file extension. Perhaps the example could be fixed/updated to demonstrate that. In its current form, the code in the snippet would also serve the index.html resource for a request to, for example, /static/image.png, which is what the previous version's snippet avoided.