[Labs-l] IMPORTANT: hotlinking of images on wikitech - addition

Hedonil hedonil at action.ms
Fri Jan 10 23:01:32 UTC 2014


On 01/10/2014 10:35 AM, Brad Jorsch (Anomie) wrote:
>/ Is it allowed to hotlink to project sites, such as Commons or enwiki?
/
Yes.  Those actually scale better than Labs ever could.  :-)

-- Marc


In addition, proper cache-control directives should be set in .lighttpd.conf

E.g.

$HTTP["url"] =~ "\.(jpg|gif|png|css|js|txt|ico)$" {
    setenv.add-response-header += ( "Cache-Control" => "max-age=386400,
public" )
}

to allow static files / resources to be cached by proxies and browsers.

If there are current changes to .js and .css files, one could add some
random
query string like  foo.js?4.0  to force the browser to load the new
version instantly.


Hedonil
https://tools.wmflabs.org/wikiviewstats/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140110/d68f177c/attachment.html>


More information about the Labs-l mailing list