Skip to content
This repository was archived by the owner on Jun 25, 2022. It is now read-only.

Asset Etag is useless and invalid #274

@AtomicNibble

Description

@AtomicNibble

The ETag sent back for assets (js,img,..) changes for every response making it useless.

https://github.com/gobuffalo/buffalo/blob/0ffd608c63439be1fc033ad7e48430528c96d2bc/route_mappings.go#L111-L115

This is because packd just returns the time you opened the file.
https://github.com/gobuffalo/packd/blob/128b5da43f114d0f9af8b4bba549b02e3496dfa8/file.go#L115

The ETag is also of invalid format and should be quoted as per RFC https://tools.ietf.org/html/rfc7232#section-2.3

Suggest the ETag is just removed as the info to make a sensible ETag is not avaliable and a very long max-age is already sent back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions