id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 6195,Allow caching of the javascript translation library by the client browser,jdetaeye,Aymeric Augustin,"A i18 javascript is dynamically generated by django. The script is recreated with every (admin) view using this library, which doesn't make much sense: the same translation dictionary is returned over and over again to the user, increasing the response times and wasting cpu and bandwidth. This patch allows the client browser to cache this dictionary locally. Caveats: * If a user switches languages on the fly or uses multiple languages at the same time, the javascript library isn't updated automatically to the new language. (A more advanced patch could use the Etag header to cover this case) * I put a hard-coded value of one day as the maximum time the user's browser can cache the page. This could be made a setting, with a default of infinite? I'm putting the ticket in 'design decision required' for the core team to evaluate the usefulness of a patch like this and a choosing the good design for a more solid patch.",New feature,closed,Documentation,dev,Normal,fixed,i18 javascript,charette.s@…,Accepted,1,0,0,1,0,0