Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http section
- map $http_if_modified_since $last_modified {
- "~*.+" $http_if_modified_since;
- default $date_gmt;
- }
- map $http_if_modified_since $response304 {
- "~*.+" 1;
- }
- # =========================================
- # server section
- if ($response304){
- return 304 "Not modified";
- }
- # location
- add_header Last-Modified $last_modified;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement