Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

cache: send headers If-None-Match and If-Modified-Since #470

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

deton
Copy link
Contributor

@deton deton commented Jun 10, 2019

What this PR changes

This PR adds If-None-Match or If-Modified-Since header to fetch request
when fetching url is in cache and ETag or Last-Modified value is cached.

This PR also updates queue
on received 304 not-modified response from server.
Otherwise, crawler does not emit "complete" event.

This PR resolves #375.

@kbychkov
Copy link
Contributor

Hi @deton! Thank you for the PR. It's the issue I've found and would like to resolve too. It should definitely be merged.

@kbychkov kbychkov merged commit 40ad2d3 into simplecrawler:master Jun 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache is useless
2 participants