Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, March 2008
Re: javascript cache bugs in QtWebKit of Qt4.4


Message 1 in thread

On Friday 22 February 2008 03:07:26 william lee wrote:
> QtWebKit will cache javascript file, even ignore the modification.

Yes, WebCore will cache resources and yes I can verify that it doesn't load 
the JavaScript file a second time. And yes setting the cache capacity to 0, 
0, 0 will still cache some resources. This is because your JS file is still 
live/around (as it is actively used by the other html page).

What is the issue? Well when loading files from the disk you only get the 
modification time, no kind of indication when the file might expire or could 
change. One change would be to set the expiration time of files to now, 
another to really disable caching, and some other possibilities. We will have 
to talk about this. The git branch holger/local-file-cache has the above 
named changes but a final fix will likely to look different.

I will update you once we have talked about this.

kind regards
	holger

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

Thanks~ Holger.
Currently, I disabled the Page::Cache() to reload every thing.

Expecting your further informations.

Thanks,
William

On Sun, Mar 2, 2008 at 2:32 AM, Holger Freyther <freyther@xxxxxxx> wrote:

> On Friday 22 February 2008 03:07:26 william lee wrote:
> > QtWebKit will cache javascript file, even ignore the modification.
>
> Yes, WebCore will cache resources and yes I can verify that it doesn't
> load
> the JavaScript file a second time. And yes setting the cache capacity to
> 0,
> 0, 0 will still cache some resources. This is because your JS file is
> still
> live/around (as it is actively used by the other html page).
>
> What is the issue? Well when loading files from the disk you only get the
> modification time, no kind of indication when the file might expire or
> could
> change. One change would be to set the expiration time of files to now,
> another to really disable caching, and some other possibilities. We will
> have
> to talk about this. The git branch holger/local-file-cache has the above
> named changes but a final fix will likely to look different.
>
> I will update you once we have talked about this.
>
> kind regards
>        holger
>
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx
>
>