Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload doesn't work #544

Closed
fedelibre opened this issue Jul 28, 2020 · 3 comments
Closed

Reload doesn't work #544

fedelibre opened this issue Jul 28, 2020 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@fedelibre
Copy link

Reload (Ctrl+R shortcut) doesn't work.

Steps to reproduce:

  • open the epub file
  • update the content and regenerate the epub
  • Ctrl+R to reload the document

I keep seeing the old content. I have to close Foliate and reopen it in order to see the new content.

Version:

  • Foliate version: 2.4.2
  • OS/Distribution and version: Fedora 32
  • Desktop environment: GNOME 3.36
  • Installation method: Flatpak
@fedelibre fedelibre added the bug Something isn't working label Jul 28, 2020
@jdbosser
Copy link

jdbosser commented Mar 6, 2022

Hi! I am experiencing the same issue. I have never contributed to an open source project, but I would be interested in giving it a go and try to fix this.

Even reloading it from the menus does not reload the content from the disk. It seems like reload behaves like a rerender of the same file in memory, and does not reload the file from the disk.

@johnfactotum
Copy link
Owner

I'm not sure what's causing this either.

Might be that the file is cached by WebKit (files are fed to Epub.js as a file URI, which I think Epub.js then fetches with XMLHttpRequest). This seems plausible, as reloading after deleting the file works as expected, but not after merely modifying it.

But I'm not sure how to clear this cache. Calling webkit_web_context_clear_cache () does not appears to have any effect.

@johnfactotum
Copy link
Owner

Fixed in the gtk4 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants