Skip to content

Don't use the cache if the request has a Range header#328

Merged
frostming merged 1 commit intopsf:masterfrom
dimbleby:range-disables-cache
Feb 2, 2024
Merged

Don't use the cache if the request has a Range header#328
frostming merged 1 commit intopsf:masterfrom
dimbleby:range-disables-cache

Conversation

@dimbleby
Copy link
Copy Markdown
Contributor

@dimbleby dimbleby commented Feb 1, 2024

fixes #327

Copy link
Copy Markdown
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dimbleby, LGTM. I'll let @frostming review as well before merging.

(Also, thanks for adding a test!)

@frostming
Copy link
Copy Markdown
Contributor

Looks good for now. I think we would have to encode headers as well as the URL as the cache key.

@frostming frostming merged commit 4e267a8 into psf:master Feb 2, 2024
@woodruffw
Copy link
Copy Markdown
Member

I think we would have to encode headers as well as the URL as the cache key.

Makes sense!

@dimbleby: Do you need a point release for this fix? If so, I can prep one tonight.

@frostming
Copy link
Copy Markdown
Contributor

@dimbleby: Do you need a point release for this fix? If so, I can prep one tonight.

I think so, we can cut a 0.14.0 release

@dimbleby
Copy link
Copy Markdown
Contributor Author

dimbleby commented Feb 2, 2024

thanks folks!

woodruffw pushed a commit to woodruffw-forks/cachecontrol that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

download of partial content is defeated by cachecontrol

3 participants