
| Key: |
MBS-3851
|
| Type: |
Improvement
|
| Status: |
Closed
|
| Resolution: |
Duplicate
|
| Priority: |
Normal
|
| Assignee: |
Unassigned
|
| Reporter: |
Brian Schweitzer
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
http://musicbrainz.org/text.js is set by headers to not be cached. All of the scripts that use it, however, are. I'm guessing it's because text_strings.tt is in musicbrainz-server/root/scripts rather than musicbrainz-server/root/static/scripts. It's a small file, but it adds an extra get request to every single page. It would seem that the server could be configured to set caching for that file equivalent in expiration/etc to the scripts that use it, which would slightly improve page load times for every page on the site by eliminating 99.99% of those get requests.
|
|
Description
|
http://musicbrainz.org/text.js is set by headers to not be cached. All of the scripts that use it, however, are. I'm guessing it's because text_strings.tt is in musicbrainz-server/root/scripts rather than musicbrainz-server/root/static/scripts. It's a small file, but it adds an extra get request to every single page. It would seem that the server could be configured to set caching for that file equivalent in expiration/etc to the scripts that use it, which would slightly improve page load times for every page on the site by eliminating 99.99% of those get requests. |
Show » |
Sort Order:
|
I don't think we can actually work on this until we decide how internationalization will work. Atm if you magically "change language", then text.js is serving something different. en.musicbrainz.org and de.musicbrainz.org is one solution, because en.musicbrainz.org/text.js is always the same thing then (in fact, it can be statically compiled).