You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating into #398 I discovered this check:
def cache_sensible(self, url: str):
"""Check whether it ever returns 304s. Yeah sure, this is a race. I
don't care for a test that runs a few times a week at most. With
Giggity's better caching (ETag support) I should improve/delete this."""
if url not in self.hcache:
return None
if "last-modified" in self.hcache[url]:
ims = self.hcache[url]["last-modified"]
else:
ims = email.utils.formatdate(self.hcache[url]["_ts"], localtime=False, usegmt=True)
headers = {"If-Modified-Since": ims}
# GET not HEAD because the CCC webserver is fucking retarded.
u = self.o.request(
"GET", url, headers=headers, redirect=False, preload_content=False)
return u.status == 304
If the comment is true and Giggity itself supports If-None-Match then indeed I think this check should be rewritten (or disabled).
The text was updated successfully, but these errors were encountered:
Yep, added to the CI now. I forgot why I didn't do that right away other than giving people some time to update.
The check dates back to conference WiFi being pretty bad, which shouldn't be as big a problem anymore now usually. Plus, there's the "give up, show cached data" button for quite a while now anyway. I'll see whether to keep this check or ditch it if it continues to be annoying.
While investigating into #398 I discovered this check:
If the comment is true and Giggity itself supports
If-None-Match
then indeed I think this check should be rewritten (or disabled).The text was updated successfully, but these errors were encountered: