Remix Utils - v9.0.0
    Preparing search index...

    Function notModified

    • Create a response with only the status 304 and optional headers. This is useful when trying to implement conditional responses based on Etags.

      Parameters

      • Optionalinit: Omit<ResponseInit, "status">

      Returns Response

      export async function loader({ request }: Route.LoaderArgs) {
      return notModified();
      }