Skip to content

resources.GetRemote: By default, do not respect no-store in server response #13990

@bep

Description

@bep

I have a case where Hugo is a little too smart for my taste: I'm getting lots of remote resources with resources.GetRemote, but most of them does not exist (404).

The server in question returns a no-store HTTP header with these responses, which Hugo respects and skips the file cache.

This means that I will repeat all of these not found requests on every build, which is not something I'm too happy about.

I will add an config option to enable the old behaviour, but I mark this as a bug to enable me to add a slightly breaking change; but I'm pretty sure that this is what most people would want.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions