https://bugzilla.wikimedia.org/show_bug.cgi?id=49720

Matthew Flaschen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #12 from Matthew Flaschen <[email protected]> ---
(In reply to comment #11)
> I have basically no clue about this, and if I interpret
> http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-
> browsers-to-reload-cached-css-js-files
> correctly and if I consider the information trustworthy, then adding a query
> parameter is not a great idea.

Which answer are you referring to?

There's lots of ways to do this, some elaborate, some simple.  A simple way is
to include a querystring containing the file's modification time or hash in the
static (CSS/JS) references.  Then, whenever the HTML is generated, it will
generate URLs uniquely identifying the current static content.  This allows the
static content to be cached for a long time (since changing the querystring
changes the URL).

MW's ResourceLoader takes the modification time approach (though it has a lot
of other functionality)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to