[Bug 73611] Cache multimedia limn JSON datasources

[email protected]
Newsgroups gmane.org.wikimedia.mediawiki.bugs
Message-ID <[email protected]/>
https://bugzilla.wikimedia.org/show_bug.cgi?id=73611

--- Comment #3 from Nemo <[email protected]> ---
Thanks both.

Krinkle> General practice: Either make sure requests for data have a version or
timestamp in them and cache very long (e.g. 30+ days), or purge it when you
detect a change server side (ideal), or cache 5-10 minutes server side
(smax-age, varnish) and client-side

$ curl -I http://multimedia-metrics.wmflabs.org/dashboards/mmv
HTTP/1.1 200 OK
Server: nginx/1.5.0

Just add something to your nginx config à la

location ~*  \.(json|csv)$ {
   expires 10 m;
}

?

Though, you could even do "expires @1h00m;" or something like that, since the
data only needs updating after a cronjob, doesn't it?

-- 
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.