PaleMoon v24.3.2 caching problem

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
freefrog

PaleMoon v24.3.2 caching problem

Unread post by freefrog » 2014-02-27, 11:18

It seems there is a problem with the caching of pages and rss/atom feeds.
The browser continues to display the cached version even after the user have changed the pages content. Usually Ctrl + F5 forces the refresh but I have noticed some Joomla based pages that still display the cached content until the browser is closed and reopened.

Win7 64bit using the 32bit version of PM.

P.S. It's probably a FF bug since apparently a similar problem exists in FF v27.0.1.
Last edited by freefrog on 2014-02-27, 12:19, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35636
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PaleMoon v24.3.2 caching problem

Unread post by Moonchild » 2014-02-27, 12:13

Pale Moon properly honors cache settings. By default it will cache a page until the date/time indicated as expiration (by the web server).

If you've changed the cache checking setting to "once per session", e.g. by using about:config, PMC or another tool, then the behavior you describe is as expected.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

freefrog

Re: PaleMoon v24.3.2 caching problem

Unread post by freefrog » 2014-02-27, 12:24

I don't think it was changed but if you can tell me what values I should cheek to be certain. (browser.cache.check_doc_frequency was set to 3, changed to 1 for testing)

BTW Not all pages have that problem, only some of them which is why I initially thought the problem was in them.

freefrog

Re: PaleMoon v24.3.2 caching problem

Unread post by freefrog » 2014-03-07, 10:23

Your Operating system: Win7 64bit
The exact version of Pale Moon you are using: Portable 32bits, v24.3.2
Bugzilla bug number if found: possibly https://bugzilla.mozilla.org/show_bug.cgi?id=183470

Clearing the cache seems to fix the problem for some time, setting browser.cache.check_doc_frequency to 1 doesn't help at all.
The problem seems to reappears once the cache reaches above certain level (50-100MB when set to 256MB, less than 30MB when set to 50MB) of reaches the cache limit if less than that.

P.S. The problem exist on a brand new Win7 with just downloaded version of PM (only change to the settings is to enable multiple instances and caching)

freefrog

Re: PaleMoon v24.3.2 caching problem

Unread post by freefrog » 2014-03-13, 10:31

On one of the problematic sites the cache expires date is set in the future (2050) so this could explain why it's content doesn't refreshes while cacheing is enabled but doesn't explain why it isn't refreshing the content when it is disabled or set to check on each visit.

P.S. Problem still in portable v24.4.0 (x86).

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35636
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PaleMoon v24.3.2 caching problem

Unread post by Moonchild » 2014-03-13, 10:34

"Check on each visit" merely "checks if the document has changed". If the server responds with a "no" then Pale Moon won't download it.
Having an expiry far in the future with the default setting has the same effect since the document "hasn't expired yet".

These kinds of issues are cause by an improperly set up web server, and on the browser side, everything works as-intended.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

freefrog

Re: PaleMoon v24.3.2 caching problem

Unread post by freefrog » 2014-03-13, 13:30

freefrog wrote:... doesn't explain why it isn't refreshing the content when it is disabled (cacheing) ...
Disabled memory caching and set the cache in the options to 0MB.

P.S. After updating to PaleMoon Portable v24.4.0 and disabling the cache it seems the problem is gone.

Locked