CSS file is always requested twice
Categories
(Core :: Networking, defect, P3)
Tracking
()
People
(Reporter: fleet69, Unassigned)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
|
47.75 KB,
image/png
|
Details |
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.
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
|
||
I was also able to reproduce this issue, it seems that the css file is request twice while in Chrome its only displayed once.
Comment 3•2 years ago
|
||
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).
Updated•2 years ago
|
(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.
Description
•