[w3c/ServiceWorker] Cache and URL Rewriting (#1057)

Hi every,

I want to make a simple service worker cache so I have write the following function:
```

caches.open(CACHE) // Open a cache it's just key-value map system
  .then(function(cache){
   cache.addAll([ // add all files and directoy you want to cache
   './index.html',
.
.
.
```
The issue is the URL rewriting when I go to www.mywebsite.com/index.html no problem
But if I go to the main URL www.mywebsite.com cache it's not able to link with the index.html page storage in cache.

What is the best solution to resolve that?
I have the same issue with some href wich use URL rewriting

Thanks for all

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1057

Received on Thursday, 19 January 2017 20:59:32 UTC