diff options
Diffstat (limited to 'config.cgi')
-rwxr-xr-x | config.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config.cgi b/config.cgi index 4c0881a11..02f954726 100755 --- a/config.cgi +++ b/config.cgi @@ -142,7 +142,11 @@ sub display_data { utf8::encode($digest_data) if utf8::is_utf8($digest_data); my $digest = md5_base64($digest_data); - $cgi->check_etag($digest); + if ($cgi->check_etag($digest)) { + print $cgi->header(-ETag => $digest, + -status => '304 Not Modified'); + exit; + } print $cgi->header (-ETag => $digest, -type => $format->{'ctype'}); |