[mb-bugs] [jira] Commented: (MBS-646) Use query string to force fresh main.css

Oliver Charles (JIRA) jira-admin at musicbrainz.org
Mon Oct 11 11:25:01 UTC 2010


    [ http://jira.musicbrainz.org/browse/MBS-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11451#action_11451 ] 

Oliver Charles commented on MBS-646:
------------------------------------

Someone suggested we add 10 years cache time to all static files, and then query strings may be taken into account - this could be an option

> Use query string to force fresh main.css
> ----------------------------------------
>
>                 Key: MBS-646
>                 URL: http://jira.musicbrainz.org/browse/MBS-646
>             Project: MusicBrainz Server
>          Issue Type: Task
>    Affects Versions: NGS - Beta 1
>            Reporter: Dave Evans
>            Assignee: Oliver Charles
>             Fix For: NGS - Release Candidate 1
>
>
> In pseudo-code:
>   # Either for each request, or if you prefer at startup time only:
>   $mtime = (stat "main.css")[9];
>   # Every time main.css is linked to:
>   link rel="stylesheet" type="text/css" href="/static/main.css?t=$mtime" />
> In combination with UpdateStylesheetLinks (MBH-7), this ensures that clients always use fresh style sheets (though they might be using cached, and hence stale, images, JS, etc).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.musicbrainz.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the MusicBrainz-bugs mailing list