Open Bug 1833106 Opened 2 years ago Updated 2 years ago

CSS file is always requested twice

Categories

(Core :: Networking, defect, P3)

Firefox 113
defect

Tracking

()

Tracking Status
firefox-esr102 --- affected
firefox113 --- affected
firefox114 --- affected
firefox115 --- affected

People

(Reporter: fleet69, Unassigned)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0

Steps to reproduce:

If I use the following HTML code, the linked CSS file is always requested twice.

<!DOCTYPE html>
<html>
    <head>
        <title>Login</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link type="text/css" rel="stylesheet" href="/assets/layout.css" />
    </head>
    <body>
        <h1>test</h1>
    </body>
</html>

Actual results:

In the server logs and also in the dev console (cache disabled) the CSS file is requested twice. firefox has no extensions and this happens also in safe-mode. It maybe happens only if the dev console is opened with disabled cache, but i cant reproduce it with other websites i tested. in chromium the css file is requested only once as expected.

Expected results:

The CSS file should only be downloaded once.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

I was also able to reproduce this issue, it seems that the css file is request twice while in Chrome its only displayed once.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Component: Layout → Networking
Ever confirmed: true

The fact this only happens with the cache off means it's not important to most users (doubly so if it's only with devtools open).

Priority: -- → P3
Whiteboard: [necko-triaged]

(In reply to Randell Jesup [:jesup] (needinfo me) from comment #3)

The fact this only happens with the cache off means it's not important to most users (doubly so if it's only with devtools open).

well its important to developers, i was searching for an hour to find the bug in my app. if the css file is referenced once in the html
it should be requested only once.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: