Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plextraktsync/factory/Factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ def session(self):
# Plex sends "Cache-Control: no-cache" headers to requests we want to cache
cache_control=False,
urls_expire_after=self.urls_expire_after,
# https://requests-cache.readthedocs.io/en/stable/user_guide/expiration.html#expiration-and-error-handling
stale_if_error=True,
# https://requests-cache.readthedocs.io/en/stable/user_guide/expiration.html#asynchronous-revalidation
stale_while_revalidate=True,
# Plex doesn't Send Vary: X-Plex-Container-Start
match_headers=["X-Plex-Container-Start"],
)
Expand Down