Safari ETag Caching Limit – Files above around 120MB Not Cached

I’m encountering an issue with Safari’s caching behavior when using ETags. It appears that Safari only caches files up to approximately 120MB and discards anything larger. Other browsers don’t seem to have this limitation.

  • Is this a known limitation of Safari?
  • Are there any workarounds to allow larger files to be cached?
  • Would adjusting cache-control headers help, or is this strictly an internal Safari behavior?

I also tried increasing the cache size in Safari, but it didn’t seem to make a difference. Has anyone successfully bypassed this restriction? Any insights or suggestions would be greatly appreciated!

Posted on Feb 25, 2025 09:48 PM

Reply
1 reply

Feb 25, 2025 10:42 PM in response to RRC96

I'm facing two issues with Safari's caching behavior:


1. File Size Caching Limit:

Safari seems to cache files only up to approximately 120MB, discarding anything larger, whereas other browsers don’t exhibit this limitation.


  • Is this a known restriction in Safari?
  • Are there any workarounds to enable caching for larger files?
  • Would modifying Cache-Control headers help, or is this purely an internal Safari behavior?


I also attempted to increase Safari’s cache size, but it didn’t seem to have any effect. Has anyone successfully bypassed this limitation?


2. Inconsistent If-None-Match Behavior:


For some cached files, I observe a 304 Not Modified response, yet the If-None-Match header is missing from the request.


  • What could cause this inconsistency?
  • Under what conditions does Safari decide not to send If-None-Match?


Any insights or suggestions would be greatly appreciated!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari ETag Caching Limit – Files above around 120MB Not Cached

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.