improve cache performance and code readability #171

Open
lloyd opened this Issue Mar 25, 2013 · 1 comment

Projects

None yet

2 participants

@lloyd

A set of conventions we use in persona that might be beneficial here:

  1. templates never vary between server restarts (except by Content-Encoding or Accept-Language)
  2. all user-specific data is returned via API calls
  3. we use etagify for all templates

this would let us have completely cachified resources, and in the cache full case we'd just do a DOM re-validation and a couple itsy bitsy rest calls. It also would let us make the most of CDN when we introduce. Next, it would remove the confusing call-specific cache headers returned in views.js (which is easy to mess up as user-specific data is introduced to templates).

Most importantly, it would increase symmetry between our services and make it easier for more people to maintain them.

thoughts?

@6a68
Mozilla member

+1 🌈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment