http_match_etag
(PECL pecl_http >= 0.1.0)
http_match_etag — Comprobar si coincide el ETag
Descripción
bool http_match_etag
( string
$etag
[, bool $for_range = false
] )Comprueba si coincide el ETag pasado como parámetro con las cabeceras HTTP del cliente If-Match If-None-Match.
Parámetros
-
etag -
ETag a comprobar
-
for_range -
si es
TRUE, se comprobará la cabecera normalmente usada para validar rangos HTTP
Valores devueltos
Devuelve TRUE si coincide el ETag o la cabecera contiene un asterisco ("*"), si no FALSE.
Ver también
- http_match_last_modified()
- http_match_request_header() - Comprobar si coincide cualquier cabecera
- http_cache_etag() - Guardando en caché a partir de ETag
- http_cache_last_modified() - Guardando en caché por última modificación
- ob_etaghandler() - Manejador de salida de ETag