---
title: IfNoneMatch
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/headers/src/lib/if-none-match.ts#L21
---

# IfNoneMatch

## Summary

The value of an `If-None-Match` HTTP header.

[MDN `If-None-Match` Reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match)

[HTTP/1.1 Specification](https://datatracker.ietf.org/doc/html/rfc7232#section-3.2)

## Signature

```ts
class IfNoneMatch {
  constructor(init: string | string[] | IfNoneMatchInit): IfNoneMatch;

  // Properties
  tags: string[];

  // Methods
  has(tag: string): boolean;
  matches(tag: string): boolean;
  toString(): string;
  from(value: string | string[] | IfNoneMatchInit | null): IfNoneMatch;
}

```

## Properties

### `tags`

Entity tags carried by the header.

## Methods

### `has(tag: string): boolean`

Checks if the header contains the given entity tag.

Note: This method checks only for exact matches and does not consider wildcards.

#### Parameters

##### `tag`

The entity tag to check for

### `matches(tag: string): boolean`

Checks if this header matches the given entity tag.

#### Parameters

##### `tag`

The entity tag to check for

### `toString(): string`

Returns the string representation of the header value.



### `from(value: string | string[] | IfNoneMatchInit | null): IfNoneMatch`

Parse an If-None-Match header value.

#### Parameters

##### `value`

The header value (string, string[], init object, or null)