[Done] Make <include> cachable
Posted: 23 Dec 2014, 18:44
I have a request regarding the <include> tag to include other XML files into the ManiaLink: Enable caching for these ressources.
A possible use case for this would be to extract static content to a separate file, and to <include> it into the main ManiaLink. Such static content could be a ManiaScript (or parts of it) which will never change, or the menu of the ManiaLink etc.
Currently, Maniaplanet will re-request all <include>s when the ManiaLink is changed (or refreshed), so all static contents get re-downloaded to the client.
My suggestion is to add an attribute "timeout" to the <include>, which specifies the lifetime of the content in seconds (kinda like the <timeout> tag of the main ManiaLink). If missing, cache is disabled for this <include> to keep backward compatibility.
A possible use case for this would be to extract static content to a separate file, and to <include> it into the main ManiaLink. Such static content could be a ManiaScript (or parts of it) which will never change, or the menu of the ManiaLink etc.
Currently, Maniaplanet will re-request all <include>s when the ManiaLink is changed (or refreshed), so all static contents get re-downloaded to the client.
My suggestion is to add an attribute "timeout" to the <include>, which specifies the lifetime of the content in seconds (kinda like the <timeout> tag of the main ManiaLink). If missing, cache is disabled for this <include> to keep backward compatibility.