fast_404 paths should include "map" files

Created on 24 July 2018, almost 6 years ago
Updated 14 December 2023, 7 months ago

Problem/Motivation

The fast_404system allows a shortcut path, which is by default configured to asset extensions like txt, png, swf, etc.

One case which is not covered currently is the case of source maps for CSS and JS, which are requested when developers have browsers with dev tools open, and which cause extra 404s all going to the Drupal backend (hopefully cached if cache_ttl_4xxis active).

Since these are assets, present or not, these requests should not have to go to the router if fast_404 has been set up, just like the other asset types.

See the MAP file format wiki page for more information.

Steps to reproduce

Proposed resolution

The fast_404 extensions are currently txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp.

Add map to the list of extensions.

Remaining tasks

  1. Commit patch

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 43 minutes ago

Created by

πŸ‡«πŸ‡·France fgm Paris, France

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024