M
M
mr_blond972018-08-03 00:10:14
HTML
mr_blond97, 2018-08-03 00:10:14

Why is content from AppCache not downloaded even online?

Index.html:

<!DOCTYPE html>
<html manifest="/example">

<head>
</head>

<body>
</body>

<script src="./test.js"></script>
</html>

AppCache manifest:
CACHE MANIFEST
CACHE:
index.html
# v01

test.js:
console.log('test!');
I turn off network in chrome and reload the page. The index.html file is available offline, test.js is not available. Everything works as expected. But after enabling network, the index.html file remains hashed and test.js is not available (status failed) even after some changes are made to the manifest file. The test.js file itself opens in a separate browser tab along the path localhost/test.js.
How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question