Open Bug 1037506 Opened 11 years ago Updated 2 years ago

All stylesheets are cached forever

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: khuey, Unassigned)

Details

(Keywords: memory-leak, Whiteboard: [MemShrink:P2])

css::Loader::mCompleteSheets is a monotonically growing hashtable (until the loader, which is attached to the document, is unlinked anyways). We should expire this cache somehow.
Whiteboard: [MemShrink] → [MemShrink:P2]
Severity: normal → S3

It would be nice if stylesheets were not cached at all by default.

In both Chrome and Safari you can reload styles by recreating a <link rel="stylesheet" href="..." /> tag and the browser will send a new request to the server.
Firefox just refuses to reload styles if you don't change the URL (by appending a random query for example).

For production applications this is probably not an issue, but it breaks a lot of development workflows and requires Firefox specific workarounds.

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