qt6windows7/tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi

14 lines
292 B
Plaintext
Raw Normal View History

2023-10-30 06:33:08 +08:00
#!/bin/bash
if [ ! -z ${HTTP_IF_MODIFIED_SINCE} ] ; then
echo "Status: 304"
echo ""
exit;
fi
cc=`echo "${QUERY_STRING}" | sed -e s/%20/\ /g`
echo "Cache-Control: $cc"
echo "Last-Modified: Sat, 31 Oct 1981 06:00:00 GMT"
echo "Content-type: text/html";
echo ""
echo "Hello World!"