Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using static translation files generated by Django-statici18n #99

Open
MaertHaekkinen opened this issue Jan 12, 2022 · 0 comments

Comments

@MaertHaekkinen
Copy link
Member

Currently, every time a request is made to Ajapaik Web App, an JavaScript translations are being downloaded.
This naturally makes the site load slower and takes up more resources of the server.

It can be possible to generate static translation files which are only updated when needed, using https://github.com/zyegfryed/django-statici18n.

Of course for this to work properly, the generated files would either make use of ETags or have some sort a hash in the name of the file.
This is how the browser is forced to fetch new content currently. ETags are used for images. Hash is used in static files (js,css,etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant