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

Prevent cache on prod #4

Closed
c0c0t3 opened this issue Dec 30, 2022 · 1 comment
Closed

Prevent cache on prod #4

c0c0t3 opened this issue Dec 30, 2022 · 1 comment

Comments

@c0c0t3
Copy link

c0c0t3 commented Dec 30, 2022

Hello Armand,

Sometimes, clients, project manager, users... has cached the dist js file generated.

I made this :

const d = new Date();
let seconds = d.getSeconds();
const PROD_URL = ['my_dist_url.js?'+ seconds]

What do you think ?

@armandsalle
Copy link
Owner

Hey! If it's working it's a good idea.
You can make a PR to update the doc, and create another PR for the TS project

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

2 participants