[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:57:29 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 31f231130ecbd94300d5bbf5f17c985dd8bbbef4
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Nov 6 17:25:52 2002 +0000
WebFoundation:
Fix for this bug:
Radar 3004422 (Loader should cache misses)
I added a code to support caching HTTP 404 responses. These objects
will now get cached just like other responses, and they are subject
to the same revalidation rules as other cache objects.
To support caching the 404 for a specified period of time, I have
added an extra method to WebHTTPResourceRequest.
* ProtocolHandlers.subproj/WebHTTPProtocolHandler.m:
(-[WebHTTPProtocolHandler willCacheObject:]):
(-[WebHTTPProtocolHandler shouldCacheResponse:]):
* ProtocolHandlers.subproj/WebHTTPResourceRequest.h:
* ProtocolHandlers.subproj/WebHTTPResourceRequest.m:
(-[WebResourceRequest pageNotFoundCacheLifetime]):
(-[WebResourceRequest setPageNotFoundCacheLifetime:]):
(-[WebHTTPResourceRequestParameters copyWithZone:]):
(-[WebHTTPResourceRequestParameters isEqual:]):
* ProtocolHandlers.subproj/WebSimpleHTTPProtocolHandler.m:
(-[WebSimpleHTTPProtocolHandler _examineHeaders]):
WebKit:
Call new WebHTTPResourceRequest method to set the amount of time
to cache a 404 response when trying to fetch a favicon.
This change helps to fix this bug:
Radar 3004422 (Loader should cache misses)
* Misc.subproj/WebIconLoader.m:
(-[WebIconLoader startLoading])
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 12433aa..9b4fe91 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,15 @@
+2002-11-06 Ken Kocienda <kocienda at apple.com>
+
+ Call new WebHTTPResourceRequest method to set the amount of time
+ to cache a 404 response when trying to fetch a favicon.
+
+ This change helps to fix this bug:
+
+ Radar 3004422 (Loader should cache misses)
+
+ * Misc.subproj/WebIconLoader.m:
+ (-[WebIconLoader startLoading])
+
2002-11-05 Maciej Stachowiak <mjs at apple.com>
Reworked clickPolicy arguments to be closer to proposed version.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 12433aa..9b4fe91 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,15 @@
+2002-11-06 Ken Kocienda <kocienda at apple.com>
+
+ Call new WebHTTPResourceRequest method to set the amount of time
+ to cache a 404 response when trying to fetch a favicon.
+
+ This change helps to fix this bug:
+
+ Radar 3004422 (Loader should cache misses)
+
+ * Misc.subproj/WebIconLoader.m:
+ (-[WebIconLoader startLoading])
+
2002-11-05 Maciej Stachowiak <mjs at apple.com>
Reworked clickPolicy arguments to be closer to proposed version.
diff --git a/WebKit/Misc.subproj/WebIconLoader.m b/WebKit/Misc.subproj/WebIconLoader.m
index b52a7be..3e8b8a0 100644
--- a/WebKit/Misc.subproj/WebIconLoader.m
+++ b/WebKit/Misc.subproj/WebIconLoader.m
@@ -14,6 +14,9 @@
#import <WebFoundation/WebNSURLExtras.h>
#import <WebFoundation/WebResourceHandle.h>
#import <WebFoundation/WebResourceRequest.h>
+#import <WebFoundation/WebHTTPResourceRequest.h>
+
+#define WebIconLoaderWeeksWorthOfSeconds (60 * 60 * 24 * 7)
@interface WebIconLoaderPrivate : NSObject
{
@@ -82,6 +85,7 @@
}
WebResourceRequest *request = [[WebResourceRequest alloc] initWithURL:_private->URL];
+ [request setPageNotFoundCacheLifetime:WebIconLoaderWeeksWorthOfSeconds];
_private->handle = [[WebResourceHandle alloc] initWithRequest:request];
[_private->handle loadWithDelegate:self];
[request release];
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list