gregmarra/the-blue-alliance — pull request #369 by fangeugene (2012-12-21 20:23:34+00:00)
Title: Never serve outdated CSS/JS because of Edge Cache inconsistencies

The branch name is very misleading. Oh well.

Note: Most of the files changed was just me moving around the uncompiled LESS/JS/CSS files to make more sense.

With this fix, the only inconsistency should come from unexpired memcache. Memcaching the data and rendering on every request (as opposed to memcaching the whole page like we're doing now) poses the following problem:

On my local dev, it seems like for a typical Event Details page, it takes on the order of a few miliseconds from calling handler.get() until it writes the response if the whole template is cached, but up to half a second if only the template_vars are cached and we have to temaplate.render() each time.