Bug 118013 - Cache control for main page influences cache control for items in page
Summary: Cache control for main page influences cache control for items in page
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.4.1
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 15:30 UTC by Jonas Christian Drewsen
Modified: 2012-06-19 17:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Christian Drewsen 2005-12-09 15:30:52 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    Debian stable Packages
OS:                Linux

I've got a index.cgi script generating some html with some images. I've set the option "use cache whenever possible". The headers for the cgi script is set to make the browser not cache the page. Unfortunately this also results in the konqueror loading all images in the page again, even though their http headers specifies that they are cacheable.

If i remove the "expires" and "cache-control" headers from the index.cgi page, the images are loaded from cache as they should. So it looks like konqueror uses the main pages cache control in a way that changes the behaviour of image caching.

The index.cgi page has the following headers:

Date: Fri, 09 Dec 2005 14:16:00 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16
Cache-Control: no-cache, no-store
Expires: Sun, 10 Feb 2000 16:00:00 GMT
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

200 OK

A header from one of the images is:

Date: Fri, 09 Dec 2005 13:33:58 GMT
Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-16
Last-Modified: Tue, 04 Oct 2005 12:02:31 GMT
Etag: "10304930-2a9-43426f57"
Accept-Ranges: bytes
Content-Length: 681
Content-Type: image/png

200 OK
Comment 1 Jonas Christian Drewsen 2005-12-09 15:34:23 UTC
By the way, the caching works as expected in both IE and Firefox.
Comment 2 Janet 2007-08-06 11:27:02 UTC
Might it have something to do with the lack of an internal DNS cache in konqueror? Konqueror seems to send a DNS query for every picture in a page which makes it extremely slow (compared to other browsers like firefox with internal DNS cache) on sites with many pictures like gmx.com or last.fm.
Comment 3 Janek Bevendorff 2012-06-19 17:31:05 UTC
Message from the Bugsquad and Konqueror teams: This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore. If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report. Thank you for your understanding.