mozilla/fxa-content-server — pull request #1087 by shane-tomlinson (2014-05-09 16:28:44+00:00)
Title: WIP: connect-fonts again - fix all the typography

This is a WIP to generate ideas.

@zaach and @nchapman - I have added grunt-connect-fonts and connect-cachify to the deps list. The general idea is to build one CSS bundle per locale. When a template is rendered that needs CSS, figure out which CSS bundle to serve based on the req.lang added by l10n-abide. Since the stylesheet is added to the template at render time (instead of statically), use connect-cachify to handle creating cache-busting URLs.

Another approach that could be used is to generate one index.html/404.html per locale during build time. The generated html files would contain a link to the locale specific CSS bundle. Grunt could then take care of the cache busing URLs. This would require us to modify the `/` and `404` handlers to serve the correct html file.

Both of them contain complexities. I used cachify because I know it but I am up for creating individual per locale html files as well. I have a feeling the per locale html files may cause less load on the server, but I have no evidence to back that up.