0

I'm looking for a quick solution to fix caching issues (especially in Chrome but should include all modern web browsers).

Is appending timestamp or random numbers at the end of the file as a parameter good enough?

For example,

<script type="text/javascript" src="/somefile.js?123456789"></script>

where 12345678 is either a timestamp or randomly generated numbers.

In Developer tools, I can see that Chrome is not using local disk cache in this case.

DISCLAIMER

I understand there are better (proper) ways to solve this.

iaforek
  • 2,860
  • 5
  • 40
  • 56

0 Answers0