I'm working with a script that dynamically generates images, and I need a way to handle browsing caching correctly. This requires handling HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCH headers so I can send a 304 Not Modified status when necessary. I know Miva has a miva_output_header function to set output headers, but is there conversely a way to read request headers?
EDIT: Right after posting this, I remembered that headers are automatically assigned to system variables. So I just needed s.http_if_modified_since.
EDIT: Right after posting this, I remembered that headers are automatically assigned to system variables. So I just needed s.http_if_modified_since.