Author: herd
Description:
Please allow the HTTP headers "Cache-Control", "Expires", and "X-Cache*" type headers to be modified in API queries by utilizing the &maxage URL parameter, similar to action=raw's utilization. This would allow noncritical queries in user scripts, that perhaps activate on every page load, to not strain the servers overtly.
Inspiring example is a conceptual user status script that would query the API on every page load of participating users to check their last edit. By giving the query a squid-level and browser-level short cache, such as 15 minutes, the backend queries would be greatly reduced by the same user, or multiple users, visiting that user's page.
This parameter should probably be ignored for any write-function or anything sending POST data.
Version: unspecified
Severity: normal
URL: http://web-sniffer.net/?url=http%3A%2F%2Fen.wikipedia.org%2Fw%2Fapi.php%3Faction%3Dquery%26meta%3Dsiteinfo%26smaxage%3D900&submit=Submit&http=1.1&gzip=yes&type=GET&uak=0