• Resolved abitofmind

    (@abitofmind)


    Reproduction

    1. Perfect Images 6.4.1 running on WP 6.1.1.
    2. Browser DevTools > Network — Start recording.
    3. Open Site Editor. Wait until it has loaded.
    4. DevTools > Network: Two requests to plugin files which do not exist on the server and hence give a HTTP 404 Not Found:

    404 /wp-content/plugins/wp-retina-2x/app/index.js.map

    • index.js exists there.
    • index.js.map is indeed missing.

    404 /wp-content/plugins/limit-login-attempts-reloaded/assets/js/chart.umd.js.map

    • chart.umd.js exists there.
    • chart.umd.js.map is indeed missing.

    Remarks: In output mode this error does not exist. Only in the Site Editor environment this happens. I noticed no negative effects. But I noticed the error in the console. Wanted to at least share this information with you.

Viewing 1 replies (of 1 total)
  • Thread Starter abitofmind

    (@abitofmind)

    Learning: *.js.map files are so called Sourcemap files and are often inaccessible to normal users on purpose. Good video on the subject.

    A sourcemap file is the full source code companion file to a minified/transpiled .js or .css file, which if opened in the web browser’s developer tools is shown instead of the minified file (which itself would be cryptic and hardly comprehensible).

    Many developers on purpose make those sourcemap files inaccessible to anonymous users (to keep their source code protected) and only when you request the source map as a legitimate user, identified via a special cookie or from a designated IP address origin, the server returns the .js.map file to you. Everyone else will get a HTTP 404 Not Found error.

    So this is harmless and can be ignored!

Viewing 1 replies (of 1 total)
  • The topic ‘While in Site Editor plugin Perfect Images requests inexistent .js.map files’ is closed to new replies.