Bug 248073 - Web Inspector: CSS cache is kept even if "Disable Cache" is checked
Summary: Web Inspector: CSS cache is kept even if "Disable Cache" is checked
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 16
Hardware: iPhone / iPad iOS 16
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-18 00:16 PST by linma
Modified: 2022-11-25 00:17 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description linma 2022-11-18 00:16:19 PST
Description of problem
----------------------
Seen on iPad with iOS 16 in Safari.

When visiting a webpage and disabling the cache through the web inspector, the caching should be turned off. However, when updating the CSS on our backend, the changes did not become visible until manually resetting the cache on the iPad. We can confirm that the updates did apply, as they were visible in the web inspector for Safari 16 on macOS 13.

Our test case was that we wanted to prevent an <img> from showing a pop-up on a long press by using '-webkit-touch-callout: none;'. Before the update, the image showed the pop-up. After updating the backend CSS, and checking "Disable Cache", the image still produced a pop-up on a long press. When checking the CSS in the web inspector, the updates in CSS had not been applied.


Additional info
---------------
To use the web inspector for the iPad, we connected it to a Mac. The "Disable Cache" checkbox was found under tab Network, in the top-right corner.

To manually reset the cache for the iPad, we went to Settings -> Safari -> Clear History and Website Data.


Actual results
--------------
The cache was used, i.e. CSS was not updated despite using "Disable Cache" in the inspector.


Expected results
----------------
The cache should not be used while using "Disable Cache".
Comment 1 Radar WebKit Bug Importer 2022-11-25 00:17:17 PST
<rdar://problem/102659415>