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

JavaScript files and HTML templates might be cached by browsers #196

Open
mauroservienti opened this issue Nov 28, 2017 · 6 comments
Open

Comments

@mauroservienti
Copy link
Member

mauroservienti commented Nov 28, 2017

When attempting exercises that touch the front-end portion of the application, currently built using AngularJS, it might happen that HTML templates are cached by browsers making it very difficult to debug what's going on.

We're moving away from Angular, however it’s not an Angular issue per se. Browsers cache JavaScript and HTML templates by default, thus moving away from Angular doesn’t solve the problem if we still want to have a single page application as client.

The easiest workaround, that we should document, is to disable browser cache, this can be easily achieved using browser debugging tools without clearing browser cache in its entirety.

@adamralph
Copy link
Member

@mauroservienti we're already closing PRs to the angular components because we're switching to server side. Should we close this for the same reason?

@mauroservienti
Copy link
Member Author

This one not really, it’s not an Angular issue per se. Browsers cache JavaScript and html templates by default, thus moving away from Angular doesn’t solve the problem if we still want to have a single page application as client. And the problem affects only exercise one where attendees need to change the UI

@adamralph
Copy link
Member

@mauroservienti 👍 OK. Could you please reword the title and description? Currently it's all about Angular.

@mauroservienti mauroservienti changed the title Angular templates are cached by browsers JavaScript files and HTMP templates might be cached by browsers Dec 4, 2017
@mauroservienti
Copy link
Member Author

done

@adamralph
Copy link
Member

adamralph commented Dec 4, 2017

@mauroservienti I just remembered that we already have some stuff about this in https://github.com/Particular/Workshop/tree/03abdcd3187c92e1361a90f9dd84fa12fd653acc#note

Is there anything more we need to add?

@mauroservienti
Copy link
Member Author

Probably add something about the fact that browsers cache can also be disabled by using F12 browser tools, and then we should find a way to remove the problem entirely

@adamralph adamralph changed the title JavaScript files and HTMP templates might be cached by browsers JavaScript files and HTML templates might be cached by browsers Aug 31, 2018
@kbaley kbaley removed the bug label Jan 29, 2021
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

3 participants