We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1990901 commit eb1429dCopy full SHA for eb1429d
views/service-worker.js.erb
@@ -48,7 +48,7 @@ self.addEventListener('fetch', event => {
48
49
<%# Attempt to return the index page from the cache if the user is visiting a url like devdocs.io/offline or devdocs.io/javascript/global_objects/array/find %>
50
<%# The index page will make sure the correct documentation or a proper offline page is shown %>
51
- if (url.origin === location.origin && !url.pathname.includes('.')) {
+ if (url.origin === location.origin && !url.pathname.replace(/~([0-9.])+/, '').includes('.')) {
52
const cachedIndex = await caches.match('/');
53
if (cachedIndex) return cachedIndex;
54
}
0 commit comments