Announcement

Collapse
No announcement yet.

Reading HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCH Headers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Reading HTTP_IF_MODIFIED_SINCE and HTTP_IF_NONE_MATCH Headers

    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.
    Last edited by joshpappas; 04-08-17, 12:26 PM.
Working...
X