开发者

HTML5 Cache Manifest works over http but not https

My google-fu does not seem up to snuff today so here it goes...

I have a django application sitting on top of apache using wsgi. I am attempting to make this work offline. I serve the Cache Manifest file from a django url with the correct mimetype and a no-cache header. I have a manifest reference in the template that looks like

<html lang="en" manifest="/myPath/manifest/">

In order to debug this problem I am using the simplest of manifest files first

CACHE MANIFEST

NETWORK:

*

However, this gives me the followi开发者_Go百科ng errors in chrome when I attempt to serve it via the https interface.

Creating Application Cache with manifest https://127.0.0.1/myPath/manifest/ Application Cache Checking event Application Cache Error event: Manifest fetch failed (-1) https://127.0.0.1/myPath/manifest/

When served over http it appears to work correctly. I am using a self signed security certificate on my development machine. This is the only thing that I can think might make the difference between http and https serving the same manifest file(using relative links so the origin is correct). What is causing the difference between http and https, and how to I correct it?


I'd blame your self-signed certificate.

Chrome and Firefox, if the scary-looking warning dialogs weren't enough, are quite anal about self-signed certificates. For example, HSTS does not work with self-signed certificates in either browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜