Skip to content

Make Me Engineer

  • html
  • java
  • php
  • javascript
  • c#
  • math

auto-versioning

How to force browsers to reload cached CSS and JS files?

This solution is written in PHP, but it should be easily adapted to other languages. The original .htaccess regex can cause problems with files like json-1.3.js. The solution is to only rewrite if there are exactly 10 digits at the end. (Because 10 digits covers all timestamps from 9/9/2001 to 11/20/2286.) First, we use the … Read more

Categories caching Tags auto-versioning, browser, cache-invalidation, caching Leave a comment

How to force the browser to reload cached CSS and JavaScript files

How to force the browser to reload cached CSS and JavaScript files

Categories javascript Tags auto-versioning, caching, css, javascript Leave a comment
  • How do I get a reference to the AppDelegate in Swift?
  • Run a java function after a specific number of seconds
  • How can I change the color of an ‘svg’ element?
  • Is there a “subgrid” feature, to position “grandchildren” of a grid container?
  • How do I read image data from a URL?
  • How can I write ‘a:hover’ in inline CSS?
  • How can one make a dictionary with duplicate keys in Python?
  • Share cookies between subdomain and domain
  • How can I install MinGW-w64 and MSYS2?
  • TypeError: ‘int’ object is not subscriptable – Trying To Create A Graph
© 2021 w3toppers.com