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 tab is not working. #70

Open
Filipebra opened this issue Oct 27, 2020 · 7 comments
Open

Reload tab is not working. #70

Filipebra opened this issue Oct 27, 2020 · 7 comments

Comments

@Filipebra
Copy link

I put the Refresh rate At 15 seconds, and the display At 60 seconds, but it doesnt update At every 15 seconds.

@arussell
Copy link

I am also seeing this issue -- automatic refresh does not appear to work in the most recent release.

@KevinSheedy
Copy link
Owner

Hi @arussell
Could you clarify what you mean? There are no config options called "refresh rate" or "display".
What does your config file look like and what behaviour are you seeing?
Thanks

@arussell
Copy link

Hi @KevinSheedy, my config is as follows:

{
  "fullscreen": true,
  "autoStart": true,
  "lazyLoadTabs": false,
  "websites": [
    {
      "url": "https://example.com",
      "duration": 15,
      "tabReloadIntervalSeconds": 60
    },
    {
      "url": "https://example.com/2",
      "duration": 15,
      "tabReloadIntervalSeconds": 3600
    }
  ]
}

The tabReloadIntervalSeconds property does not cause tabs to refresh as scheduled, each tab loads once when Tab Rotate is started, but never refreshes.

@KevinSheedy
Copy link
Owner

KevinSheedy commented Sep 27, 2021

Hi @arussell
I just tried out your config and it's working fine for me.
To make things easier to debug, I swapped in a different url to your config so I could see when the page has been reloaded.
It's a random page picker so you see a different cartoon each time the page loads:
https://c.xkcd.com/random/comic/

So the full config I used was:

{
  "fullscreen": true,
  "autoStart": true,
  "lazyLoadTabs": false,
  "websites": [
    {
      "url": "https://c.xkcd.com/random/comic/",
      "duration": 15,
      "tabReloadIntervalSeconds": 60
    },
    {
      "url": "https://rte.ie/news",
      "duration": 15,
      "tabReloadIntervalSeconds": 3600
    }
  ]
}

Could you try this and verify if the cartoon changes?

@arussell
Copy link

Yeah that's working -- must be something weird with the page I'm using rather than your plugin.

Perhaps it has something to do with the problematic page pulling data in over XHR after pageload, maybe some cached data is being pulled in or something. I'll keep experimenting. Sorry for hijacking this issue!

@JohnnyGrey86
Copy link

JohnnyGrey86 commented Mar 14, 2022

Has this ever been resolved? Is there a flag to force a hard refresh instead of a regular refresh? (CTRL + F5). Six of my tabs being displayed are PDF exports of Power BI reports being hosted in OneDrive, and they do not properly refresh. Does the presence of an "option" at the end of the URL change its behavior? In my example, the PDF URLs have #toolbar=0 at the end.

Here is an example, with most of the URL redacted:

{
      "url": "https://redacted.sharepoint.com/personal/redacted/Documents/power_bi_images/shipping_ytd.pdf#toolbar=0",
      "duration": 30,
      "tabReloadIntervalSeconds": 300
    },

@wicketr
Copy link

wicketr commented Dec 21, 2023

Hey Kevin. Here's an example that will show how it's broken. Notice how on the last tab the time does not increment.

It has something to do with anchor tags:

{
  "settingsReloadIntervalMinutes": 1,
  "fullscreen": false,
  "autoStart": true,
  "lazyLoadTabs": false,
  "closeExistingTabs": true,
  "websites": [
    {
      "url": "https://jsfiddle.net/hfcy92gd/",
      "duration": 5,
      "tabReloadIntervalSeconds": 5
    },
    {
      "url": "https://jsfiddle.net/hfcy92gd/?test=1",
      "duration": 5,
      "tabReloadIntervalSeconds": 5
    },
    {
      "url": "https://jsfiddle.net/hfcy92gd/?test=1#test",
      "duration": 5,
      "tabReloadIntervalSeconds": 5
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants