[Mono-list] if-modified-since

Piers Haken piersh@friskit.com
Sun, 17 Aug 2003 02:27:26 -0700


This is a multi-part message in MIME format.

------_=_NextPart_001_01C364A1.C5B68EB6
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

attached is a small patch to StaticFileHandler that makes use of the
if-modified-since/last-modified http headers.
=20
Piers.

------_=_NextPart_001_01C364A1.C5B68EB6
Content-Type: application/octet-stream;
	name="modified.patch"
Content-Transfer-Encoding: base64
Content-Description: modified.patch
Content-Disposition: attachment;
	filename="modified.patch"

SW5kZXg6IFN5c3RlbS5XZWIvU3RhdGljRmlsZUhhbmRsZXIuY3MKPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmls
ZTogL2N2cy9wdWJsaWMvbWNzL2NsYXNzL1N5c3RlbS5XZWIvU3lzdGVtLldlYi9TdGF0aWNGaWxl
SGFuZGxlci5jcyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4zCmRpZmYgLXUgLXIxLjMgU3RhdGlj
RmlsZUhhbmRsZXIuY3MKLS0tIFN5c3RlbS5XZWIvU3RhdGljRmlsZUhhbmRsZXIuY3MJMTIgRGVj
IDIwMDIgMDM6MjA6MTggLTAwMDAJMS4zCisrKyBTeXN0ZW0uV2ViL1N0YXRpY0ZpbGVIYW5kbGVy
LmNzCTE3IEF1ZyAyMDAzIDA5OjI4OjE1IC0wMDAwCkBAIC0yOCw4ICsyOCwyNSBAQAogCQkJCXJl
dHVybjsKIAkJCX0KIAorCQkJdHJ5CisJCQl7CisJCQkJc3RyaW5nIHN0ckhlYWRlciA9IHJlcXVl
c3QuSGVhZGVycyBbImlmLW1vZGlmaWVkLXNpbmNlIl07CisJCQkJaWYgKHN0ckhlYWRlciAhPSBu
dWxsKQorCQkJCXsKKwkJCQkJRGF0ZVRpbWUgZHRJZk1vZGlmaWVkU2luY2UgPSBEYXRlVGltZS5Q
YXJzZS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