Skip to content
Snippets Groups Projects
Commit fe33f7f8 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

publish: Merge branch 'fix/Profile_type_building_date' into 'dev'

generated from commit f868b657
parent eab4d9b0
No related merge requests found
......@@ -40,9 +40,10 @@ self.addEventListener('activate', event => {
// If no response is found, it populates the runtime cache with the response
// from the network before returning it to the page.
self.addEventListener('fetch', event => {
console.log(event.request.url)
console.log('self.location.origin: ' + self.location.origin)
// Skip cross-origin requests, like those for Google Analytics.
if (event.request.url.startsWith(self.location.origin)) {
console.log(event.request.url)
event.respondWith(
caches.match(event.request).then(cachedResponse => {
if (cachedResponse) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment