1#!/usr/bin/env python 2import os 3 4 5etag = os.environ.get("HTTP_IF_NONE_MATCH", None) 6if etag: 7 print "Status: 304 Not Modified" 8else: 9 print "Status: 200 Ok" 10 print 'ETag: "123456779"' 11 print "Content-Type: text/html" 12 print "" 13 print "<html></html>" 14