Closed Bug 310058 Opened 19 years ago Closed 19 years ago

Images are never cached

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 (ax)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 (ax)

No matter how large the size of the cache is set, images are never cached. 
Right-clicking on images does not show the file size because the images are not
cached.  Every time I reload a page, the image downloads again.

Reproducible: Always

Steps to Reproduce:
1. Set cache preferences to 50,000 KB or 100,000 KB (or any other setting as far
as I'm aware.
2. Go to a page with images or a single image repeated.
3. When the page loads, each repeated image is downloaded each time it is
displayed.  When you return to the same page right away, or later, each image
downloads again.
Actual Results:  
Each image downloaded each time it was loaded.

Expected Results:  
It should have cached the very first image (and every image) so that when they
were repeated, it would not have downloaded them again, or when I load the page
again, it should not download them again.
So there is nothing stored in <user name>\Local Settings\Application
Data\Mozilla\Firefox\Profiles\vurjzxue.default\Cache ? Can you reproduce this
with a clean profile?
Version: unspecified → 1.0 Branch
The cache directory you requested I check is full of files with 11 character
names.  There is also a _CACHE_001_ thru _CACHE_003_ and a _CACHE_MAP_ file. 
The contents of the directory add up to the limit I had previously set in the
cache preferences of 50,000 KB.  However, in tesing further this morning I had
raised the cache limit to 100,000 KB and it wasn't adding any new files to the
cache.

However, if I right-click on any image on a page, it says file size unknown (not
cached), and when I load a site with images, the images appear as they are
downloading (they come in top to bottom) rather than just loading from disk as
they should.

After deleting the contents of the cache directory, when I load new pages, it
does not appear that any new files are getting cached.

So, I decided to shut down firefox and start it up again, to see if that process
would begin the cache process.  It now continues to never cache any new files.

I noticed this problem since version 1.0.5 I belive.  I know that 1.0.6 and
1.0.7 have had it, and I believe 1.0.5 did as well.  However, before that time
it was working properly.  I would guess that my current cache directory contents
 were from a previous version of firefox when cache was working.

So after trying all of this, I did as you asked and created a new profile. 
Cache works properly in this new profile.  So, it appears as though the problem
is caused due to the fact that my profile has existed through numerous firefox
updates.  The problem now is figuring out what should be changed in the firefox
installer so that this problem does not continue.
(In reply to comment #2)
> The problem now is figuring out what should be changed in the firefox
> installer so that this problem does not continue.

Did you ever install any FF extensions?
I've got web developer and bugmenot installed.  Those are the only two
extensions I've ever used.
WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
Firefox/1.0.7

To verify whether or not caching is working, try clearing your cache, visiting
any site and then copy 'about:cache?device=disk' (without quotes) into the
location bar to see if images from that site have been cached.
Originally when I checked the cache directory and it was full, I tried clearing
my cache using the options window.  Clicking on "Clear" resulted in no change to
the cache directory.  It's like the cache directory is completely ignored by
firefox.

Then, I thought I'd try deleting all of the files in the cache directory to see
if any new ones would be created.  No cache files have been created since I
deleted them.

When I tried pasting about:cache?device=disk into the address bar, it resulted
in no change to the site I was on.  The browser didn't navigate anywhere and no
message was displayed.  And images still say file size unknown (not cached).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20050926
Firefox/1.4 ID:2005092622

WFM. Does it also happen with a new profile?
No, a newly created profile caches perfectly.  I've had my current profile from
way back to 1.0.2 or so, and I'm wondering if something has changed in the way
cache settings are stored in the profile?
Resolving as WFM per reporter's comments. It's not up to us to figure out why
this one profile is doing this. Please consult the MozillaZine forums for
further support. http://forums.mozillazine.org/
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
I tracked down the cause of the problem.  These settings were in the prefs.js
file, and when removed, cache works properly.  I have to assume that at some
point during the life cycle of Firefox, the way preferences were set was changed
and caused this problem.

user_pref("browser.cache.disk.capacity", 100000);
user_pref("browser.cache.disk.enable", false);
user_pref("browser.cache.memory.enable", false);
user_pref("intl.charsetmenu.browser.cache", "ISO-8859-2, UTF-16LE, ISO-8859-1,
UTF-8, us-ascii");

After removing those 4 lines from that file, cache works properly again.  Don't
ask me how they ever got set.
You need to log in before you can comment on or make changes to this bug.