diff --git a/index.js b/index.js index 48aab00..5e21e21 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ function filepathToMimeType(filepath) { } const updateFileCache = async (filepath, content) => { - const request = new URL(`.${filepath}`, location.origin); + const request = new URL(`.${filepath}`, location.href); if (content == null) { await cache.delete(request);