Safari shows white page when getting valid 304 Not modified response

Originator:ePirat07
Number:rdar://19074069 Date Originated:24-Nov-2014 06:12 PM
Status:Open Resolved:
Product:Safari Product Version:Version 8.0 (10600.1.25)
Classification:UI/Usability Reproducible:Sometimes
 
Summary:
Under specific circumstances Safari may show a white, empty page when it receives a 304 Not modified response from the Server in response to a If-None-Match header sent by Safari with a matching Etag.

Steps to Reproduce:
1. Load some page that supports (Etag, not tested with Last Modified) caching
2. Press reload quickly in sequence, move some times back/forwards

(These are just the fastest steps to reproduce this issue sometimes, it can happen under other circumstances too)

Expected Results:
Safari should always show the expected page

Actual Results:
Safari under described circumstances shows an empty (white) page without any content, even reload some times not fixing this.
This seems to be caused by a interrupted request, where Safari still stores the Page into Cache, causing invalid Cache data.
When loading data from the cached page this fails and the User gets an empty page.

Version:
Safari Version 8.0 (10600.1.25)

Notes:


Configuration:
MacBook Pro (Retina, 13", End 2013)
OS X Yosemite 10.10 (14A389)

Comments

The only workaround seems to disable Caching in Safari completely.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!