If you send an Ajax request to Chrome via HTTPS, any certificate errors, such as using a self-signed certificate on your API server, do not allow the response to be cached. It looks like a design.
Obviously, there is a defect in Chrome, but it was fixed in Webkit and turned into Chromium / Chrome in 2010.
Another question recommends manually adjusting the If-Modified-Since and If-None-Match headers using the jQuery ifModified: true and cache: true options. Unfortunately, this will not lead to excessive use of Chrome's behavior, so as not to cache HTTPS responses from a server with a self-signed certificate.
Testing on a server with a valid signed SSL certificate solved the problem for me; Chrome got 304 for text / html content, as expected, using standard jQuery AJAX methods.
Darren
source share