Skip to content

Commit a751cde

Browse files
committed
test
1 parent dc1c361 commit a751cde

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pulp_container/app/cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,15 @@ def find_base_path_cached(request, cached):
8686

8787
class FlatpakIndexStaticCache(SyncContentCache):
8888
def __init__(self, expires_ttl=None, auth=None):
89-
updated_keys = (QUERY_KEY,)
89+
updated_keys = (CacheKeys.host, QUERY_KEY)
9090
super().__init__(
9191
base_key="/index/static", expires_ttl=expires_ttl, keys=updated_keys, auth=auth
9292
)
9393

9494
def make_key(self, request):
9595
"""Make a key composed of the request's query."""
9696
all_keys = {
97+
CacheKeys.host: request.get_host(),
9798
QUERY_KEY: request.query_params.urlencode(),
9899
}
99100
key = ":".join(all_keys[k] for k in self.keys)

0 commit comments

Comments
 (0)