Closed hyferg closed 6 years ago
Code looks something like
headers={'If-Modified-Since': pastResponseTime} query = 'https://a.4cdn.org/pol/thread/' + str(id) + '.json' response = requests.get(query, headers)
Using either current GMT or header 'last-modified' always returns <200> rather than the <304> desired.
You're using the requests library wrong. Second parameter is params by default, not headers. Use this instead: requests.get(query, headers=headers)
params
requests.get(query, headers=headers)
thanks
Code looks something like
Using either current GMT or header 'last-modified' always returns <200> rather than the <304> desired.