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

--- Comment #3 from Nemo <federicol...@tiscali.it> ---
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to