RESOURCE
Description: Resource variable collection
Syntax: RESOURCE:key
The RESOURCE collection is used to store persistent data associated with specific resources (such as URL paths). Can be used to track access patterns for specific resources, such as the call frequency of a particular API endpoint.
This variable is not recommended at the moment because its parsing and assignment behavior still has some issues.
Example:
# Initialize resource collection
SecAction "id:1062,phase:1,pass,nolog,initcol:RESOURCE=%{REQUEST_FILENAME}"