Grafana has special $__from and $__to variables that at all times hold the values specified in the time picker.
To be precise about your question – Infinity doesn’t adjust anything in response to the time picker unless you use the variables. So for example, if the way you build the URL that infinity is fetching includes these variables above, then whenever you adjust the time picker, the URL infinity needs to load changes, and hence it will trigger a refresh.
If you just load some standard URL with no variable reference, and then you change the time picker, nothing will refresh because what you’ve told Infinity to load doesn’t in any way depend on the time picker.
Hope this helps
See this answer for a concrete example in SQL context:
Grafana runs the query again with from: now-1h, to: now using the current timestamp at each refresh. It does not fetch only the new 1-minute data but instead reevaluates the entire time range based on the latest “now” value. This ensures the dashboard always reflects the most up-to-date data.