Summary: | Memory-cached file: resources should be revalidated when accessed | ||
---|---|---|---|
Product: | WebKit | Reporter: | Andy Estes <aestes> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Enhancement | CC: | ap, beidson, darin, kling, koivisto, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 113626, 116906 | ||
Bug Blocks: |
Description
Andy Estes
2013-05-29 16:05:30 PDT
On some platforms at least, Mac for example, maybe we could do something based on registering for file system notifications for everything in the cache. I think the custom protocol issue is also interesting, albeit separate. (In reply to comment #2) > On some platforms at least, Mac for example, maybe we could do something based on registering for file system notifications for everything in the cache. Oh, I like this idea. It looks like this can ben done rather easily on platforms that support libdispatch by creating a dispatch source of type DISPATCH_SOURCE_TYPE_VNODE. There are also FSEvents on the Mac, but it can only monitor a directory whereas DISPATCH_SOURCE_TYPE_VNODE lets you monitor specific files. > > I think the custom protocol issue is also interesting, albeit separate. I agree, and I have some thoughts there too. I'll file a separate bug. (In reply to comment #3) > (In reply to comment #2) > > On some platforms at least, Mac for example, maybe we could do something based on registering for file system notifications for everything in the cache. > > Oh, I like this idea. It looks like this can ben done rather easily on platforms that support libdispatch by creating a dispatch source of type DISPATCH_SOURCE_TYPE_VNODE. There are also FSEvents on the Mac, but it can only monitor a directory whereas DISPATCH_SOURCE_TYPE_VNODE lets you monitor specific files. To correctly monitor the “contents of file at this path” you might need to monitor both the contents of the file and the contents of the directories in the path. |