Application cache error: manifest failed (404)

I already have one site, for this I created one mobile site using jquery mobile with application cache functions. (Both have the same URLs)

Using apache2 userAgent settings, I redirected to the mobile site (Android and Iphone).

When it is redirected to the mobile site, I get below error:

Application Caching Error: Manifest Error (404)

test.manifest

CACHE MANIFEST # version 1 CACHE /index.html /static/js/main.js /static/css/style.css 

Example:

main site: www.example.com/

mobile site www.example.com/

www.example.com/test.manifest opens directly, but using redirection it gives a 404 error randomly.

Please suggest any solution.

+4
source share
5 answers

Something is wrong with your manifest. You will need a colon after CACHE.

+1
source

Is your code forwarding something like this?

$. mobile.changePage

I see similar problems if I use bookmarks for some of my pages and not $ .mobile.changePage.

0
source

404 is standard for a page that does not exist. I assume your link is incorrect or you may have forgotten to download the manifest file.

0
source

Perhaps your paths should start without /, which often happens to me, even if the first item is a folder. But you probably already checked that.

0
source

In my case, I was able to make it work like

 CACHE MANIFEST #v1.0.1 NETWORK: * 

I had a 404 error when it looked like:

 CACHE MANIFEST #v1.0.1 NETWORK * 

therefore without: in the NETWORK section.

0
source

Source: https://habr.com/ru/post/1486216/


All Articles