How to debugg IE11 APPCACHE

和自甴很熟 提交于 2019-12-01 19:38:51

问题


I got an HTML5 page that works with CHROME and SAFARI but using Internet Explorer 11 it does not work, my cache manifest is valid according to http://manifest-validator.com/ and I'm very frustrated...

here's the paste of the AppCache manifest:

#version 1.1 12-20-2013
CACHE:

#images
imgs/enc1.png
imgs/logo-izq.png
#internal HTML documents
index.php
#style sheets
css/css.css
css/jquery-ui-1.10.3.custom.min.css
#style sheet images
css/images/animated-overlay.gif
css/images/ui-bg_flat_0_aaaaaa_40x100.png
css/images/ui-bg_flat_75_ffffff_40x100.png
css/images/ui-bg_glass_55_fbf9ee_1x400.png
css/images/ui-bg_glass_65_ffffff_1x400.png
css/images/ui-bg_glass_75_dadada_1x400.png
css/images/ui-bg_glass_75_e6e6e6_1x400.png
css/images/ui-bg_glass_95_fef1ec_1x400.png
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png
css/images/ui-icons_222222_256x240.png
css/images/ui-icons_2e83ff_256x240.png
css/images/ui-icons_454545_256x240.png
css/images/ui-icons_888888_256x240.png
css/images/ui-icons_cd0a0a_256x240.png
#javascript files
js/jquery.min.js
js/offline.js
js/jquery-ui.min.js
#FORMULARIOS OFFLINE
1/4-offline.php
1/5-offline.php
1/6-offline.php
2/4-offline.php
2/5-offline.php
2/6-offline.php
3/4-offline.php
3/5-offline.php
3/6-offline.php
NETWORK:
*
FALLBACK:
js/online.js js/offline.js
online.php offline.php
/ offline_plantilla.php

and the devel site is this one:

The error on IE11 is the following: Something like: The resource doesn't exist on server.


回答1:


Add

header("Cache-Control: no-cache, must-revalidate");

To any data php returns. The default Cache-Control header from php contains "no-store" which will mess up the appCache in both IE 11 and Firefox.




回答2:


IE 11 does not work with appcache if some file in the manifest (or the index itself) works with PHP SESSION

You need to remove from every PHP any of this atributtes:

session_start

cache no expire no store

make sure MimeType is correct




回答3:


Add

header("Cache-Control: no-cache, must-revalidate");

after session_start()



来源:https://stackoverflow.com/questions/20710013/how-to-debugg-ie11-appcache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!