1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash if [ ! -z ${HTTP_IF_NONE_MATCH} ] ; then echo "Status: 304" echo "" exit; fi echo "ETag: foo" echo "Content-type: text/html"; echo "" echo "Hello World!"