mozilla/kuma — pull request #2729 by darkwing (2014-09-08 21:02:43+00:00)
Title: fix bug 1063580 - Synchronize template URL format between kuma and kumascript

Just leaving this here for now.

So the core issue here is that kumascript requests template content from kuma with the template name in all lowercase (ex: `Template:discussionlist` instead of `Template:DiscussionList`). When templates are updated in kuma, however, kuma sends the `DiscussionList` original format. Since kumascript creates the cache key from the URL, we have different cache keys for the same template, and thus template contents aren't updated upon shift-refresh.

What I've chosen to do is send kumascript the lowercased template URLs to cure the issue. I had created the likewise functionality in kumascript instead, but it looks like kuma uses headers to to communicate with kumascript, so I believe we'll have less compat issues if we make kuma always send lowercase template names.

Need to add a test, but wanted to put this up for now