I have a CefResourceHandler subclass that returns data from disk, usually media files like images and video. I would like the browser to cache the resources and verify its cached copy is up to date. I do have the cache folders setup properly and the browser does write files to the cache directories.
My resource handler does respond with all the correct header values like
Accept-Ranges: bytes
Cache-Control: no-cache, must-revalidate
Connection: keep-alive
Content-Length: 14653626
Content-Range: bytes 4521984-19175609/19175610
Content-Type: video/mp4
Date: Tue, 23 Mar 2021 23:36:44 GMT
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Last-Modified: Thu, 06 Aug 2020 20:44:24 GMT
pragma: no-cache
The problme is that the request headers received never contain the "if-modified-since" header to allow me to verify the modified time. Could this be a limitation of resource handlers in general or possibly a problem with the URL that is being invoked that the resource handler responds to? Just curious if this can be made to work or if I am wasting my time.