Manual talk:$wgResourceLoaderMaxage
Add topicAppearance
Latest comment: 8 years ago by Nischayn22 in topic What does versioned mean?
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
What does versioned mean?
[edit]What does versioned mean here? Nischayn22 (talk) 20:13, 28 February 2017 (UTC)
- It refers to whether the load.php request url contains a
version
query parameter. All requests generated bymw.loader
in JavaScript are versioned. The only unversioned requests are: 1) the startup module, 2) the stylesheet. Both are referenced from cacheable page HTML. Versioned responses never change and may be cached for a long time. (Whenever their modules change, the version changes too and therefore the url won't match). The unversioned response from the startup module is relatively small and should be cached for a short period of time to ensure deployments and upgrades apply quickly. This then bootstraps the front-end environment and all other modules loaded after will use the latest versions and are cacheable for much longer, given they are loaded from versioned urls. - See also ResourceLoader/Features. Krinkle (talk) 20:49, 28 February 2017 (UTC)
- Thanks for the detailed reply. This made our site load much faster :) Nischayn22 (talk) 13:27, 3 March 2017 (UTC)