ConditionalRequestOption uses ConstantsTrait
Enumeration of the option keys accepted by {@see ConditionalRequestTrait::conditionalFileResponse()}.
These keys drive how the validating ETag is built.
Tags
Table of Contents
Constants
- HASH_CONTENT : string = 'hashContent'
- Whether the `ETag` is derived from the file content (`md5_file()`) instead of its metadata (`mtime`-`size`). Content hashing reads the whole file. Default: false.
- WEAK : string = 'weak'
- Whether the `ETag` is emitted as a weak validator (`W/"..."`). Default: false (strong).
Constants
HASH_CONTENT
Whether the `ETag` is derived from the file content (`md5_file()`) instead of its metadata (`mtime`-`size`). Content hashing reads the whole file. Default: false.
public
string
HASH_CONTENT
= 'hashContent'
WEAK
Whether the `ETag` is emitted as a weak validator (`W/"..."`). Default: false (strong).
public
string
WEAK
= 'weak'