Skip to content

Commit

Permalink
Disable cache-control to be able to use our cache rules
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Nov 8, 2024
1 parent d103ba7 commit a0c8ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plextraktsync/factory/Factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def session(self):

return CachedSession(
cache_name=self.config.cache_path,
cache_control=True,
# 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,
Expand Down

0 comments on commit a0c8ffb

Please sign in to comment.