1

I recently pushed a new version of my websites Javascript code, which caused CSS and JS media not to be loaded. In the case of Chrome, the requests were stalled due to a 6 request per domain/origin limit.

In the aftermath of resolving this, I am now experiencing users triggering remote requests multiple times per second.

I believe that there are multiple cached copies of the JS files which listen on the same DOM element and events.

If I am right, as a development, how do I detect multiple cached versions and clear it without user intervention?

I am using Rails 4 (Turbolinks enabled) to compile and minify my assets. As far as I'm aware, I should not be having these issues.

Regards,

2
  • did you search on cache busting JavaScript files? plenty of questions on the topic Commented Apr 4, 2018 at 1:31
  • Does your minification process alter the filename/path? Commented Apr 4, 2018 at 1:32

1 Answer 1

0

It turns out that Turbolinks was triggering the "on load" event multiple times on each page visit. I've since removed Turbolinks :(

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.