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

--- Comment #14 from Sergey Chernyshev <[email protected]> 2011-02-26 
18:58:01 UTC ---
Basically, there are a few ways to get versions:
 - from asset itself
    - ideally crc32/md5 of content (it's actually pretty fast)
    - or modification time (which is not very good)
 - from meta-data (in case of MW, it's file revision number)

Ideally, it should be part of the file name, e.g. 
http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Hillary_Rodham_Clinton_Signature.svg/rev125/128px-Hillary_Rodham_Clinton_Signature.svg.png

Notice "rev125" between last two slashes. It can be a real folder if you prefer
to keep old files or just pseudo-folder which can only be used for cache
busting.

Cache busting is a must as we have assets infinitely stored in all possible
caches, not only in SQuid. Don't know if you need to tell SQuid to clean old
URLs or they'll be just LRU-ed later.

BTW, all this goes for skin files as well - it should probably be done
differently though - as build script or post-commit hook or something like
SVN-Assets tool that checks repository revision or hash of the file and
generates file names accordingly.

      Sergey

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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