You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
Hi all,
I'm trying to set a custom image URL in the Offline.options. Just to test, I'm using the same cloudfront gif Offline uses, but with https because I host an ssl site.
The problem seems to be that, with a custom image url, there seems to be no "cachebreaker" query string, while I can see it with the default image url. This makes the browser respond a 304 - not modified and offline.js stops detecting a connection lost.
Please note that the problem is not https. Even with this gif, the cachebreaker is not sent and offline does not work:
Yea, it was originally not included because cache breaking in different methods might differ. Nevertheless, jQuery does it using underscore, so it's a good idea.
I had the same issue. Solved it by simply setting the url property to a function instead of a string:
url: function() { return "image.gif?_=" + (Math.floor(Math.random() * 1000000000)); }
Hi all,
I'm trying to set a custom image URL in the Offline.options. Just to test, I'm using the same cloudfront gif Offline uses, but with https because I host an ssl site.
The problem seems to be that, with a custom image url, there seems to be no "cachebreaker" query string, while I can see it with the default image url. This makes the browser respond a 304 - not modified and offline.js stops detecting a connection lost.
Please note that the problem is not https. Even with this gif, the cachebreaker is not sent and offline does not work:
The text was updated successfully, but these errors were encountered: