Skip to content Skip to sidebar Skip to footer

Html5 Cache Manifest: Whitelisting All Remote Resources?

I'm doing an iPhone version of a desktop site that includes a blog. The blog often embeds images from other domains (the image URLs always start with http:// in this case, obviousl

Solution 1:

just add the "online whitelist wildcard flag" to your manifest:

NETWORK:
*

that should do the trick! more info on the whatwg spec page

hope this helps!

Solution 2:

I think I've got a workaround. What if you created a simple server-side file (remoteResource.php) that you could reference like this:

remoteResource.php?resource=http://somewhere.com/remote/image.jpg

The PHP (or whatever server side language you're using) could just cURL in the remote resource and send it unmodified to the browser. Then, whitelist that file.

I haven't tested this because the environment I'm working with doesn't have cURL installed (ugh) but I don't see why it can't work.

Post a Comment for "Html5 Cache Manifest: Whitelisting All Remote Resources?"