I'm having some issues when loading images from a CDN, where the resources are available from a url without extension. For example:
https://vg-images.condecdn.net/image/rymMV59dRxN/crop/200/square
You'll see a lot of this when opening http://www.vogue.co.uk
The server does respond with a proper MIME-type: image/jpeg. So I'd expect the browser to just load and treat it as an image.
However when using CEF, the resource gets the status CANCELED and is never fully loaded.
For a normal asset I get these function calls from CefRequestHandler:
- Code: Select all
OnBeforeResourceLoad()
GetResourceResponseFilter()
OnResourceResponse()
OnResourceLoadComplete() // URLRequestStatus = UR_SUCCESS
However for the extension-less images I only get these function calls:
- Code: Select all
OnBeforeResourceLoad()
OnResourceLoadComplete() // URLRequestStatus = UR_CANCELED, response->GetMimeType() = NULL
Is this expected behaviour? Is there anything I can do to force the image to load?
I've tried adding request headers like:
Accept: */*
Cache-Control: no-cache
Pragma: no-cache
Thijs