Skip to content
Permalink
Browse files

Add HTTP_IF_NONE_MATCH to environement

This is required for HTTP/1.1 caching using ETags.
https://en.wikipedia.org/wiki/HTTP_ETag#Typical_usage
  • Loading branch information...
kensanata committed Oct 11, 2015
1 parent 78ba343 commit f6aa99be791acff598c439e03f6714185299fb3c
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Mojolicious/Plugin/CGI.pm
@@ -133,6 +133,7 @@ sub emulate_environment {
HTTP_HOST => $headers->host || '',
HTTP_REFERER => $headers->referrer || '',
HTTP_USER_AGENT => $headers->user_agent || '',
HTTP_IF_NONE_MATCH=> $headers->if_none_match || '',
HTTPS => $req->is_secure ? 'YES' : 'NO',

#PATH => $req->url->path,

0 comments on commit f6aa99b

Please sign in to comment.
You can’t perform that action at this time.