Skip to content

How to handle 304 Not Modified results? #79

@TheOddler

Description

@TheOddler

When requesting some data from a server it's possible to get 304 Not Modified results. However, Elm seems to categorise those as Ok newData, rather than an Err with the 304 code.

Is there a way in Elm to know when a request returned a 304 Not Modified so I can handle that specific case? I for example do not want to update my model with new data if it wasn't modified so no new render happens either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions