Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
Caching js files in browser

I'm using FastApi (uvicorn) and store js files in static folder, but when i changed js files browsers show me old version.

app.mount("/static", StaticFiles(directory="static"), name="static")

I tried clear browser cache (Chrome, edge, firefox) but result is same

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

We add an unused query string variable to the url for the js file and set it to a value based on time. For example in an aspx file we use the query string, sn as follows...

writer.Write("<script type='text/javascript' language='JavaScript' src='JavaScript/ClientDiagnostics.js?sn=" + DateTime.Now.Ticks.ToString() + "'></script>");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!