Skip to content

How to handle 304 Not Modified results? #79

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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