diff options
| author | bwarsaw | 2000-07-22 02:17:00 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-07-22 02:17:00 +0000 |
| commit | 775182dd64410f656072fd7e5611cf22f3250059 (patch) | |
| tree | 3a5f54f7f659fb41eb22e4abf0a404da63c87ab0 | |
| parent | 43f00db0ac4a7b85d2b5aec64c63f17a224ccf87 (diff) | |
| download | mailman-775182dd64410f656072fd7e5611cf22f3250059.tar.gz mailman-775182dd64410f656072fd7e5611cf22f3250059.tar.zst mailman-775182dd64410f656072fd7e5611cf22f3250059.zip | |
| -rw-r--r-- | Mailman/htmlformat.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index 360ab5e2e..15f8b2a2a 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -270,8 +270,6 @@ class Document(Container): def Format(self, indent=0, **kws): tab = ' ' * indent output = ['Content-type: text/html', - 'Cache-control: no-cache', - 'Expires: 0', '', tab, '<HTML>', @@ -280,8 +278,6 @@ class Document(Container): if self.title: output.append('%s<TITLE>%s</TITLE>' % (tab, self.title)) output.append('%s</HEAD>' % tab) - - output.append('%s<BODY' % tab) quals = [] for k, v in kws.items(): @@ -296,11 +292,7 @@ class Document(Container): class HeadlessDocument(Document): """Document without head section, for templates that provide their own.""" def Format(self, indent=0, **kws): - return '''Content-type: text/html - Cache-control: no-cache - Expires: 0 - - ''' + Container.Format(self, indent) + return 'Content-type: text/html\n' + Container.Format(self, indent) class StdContainer(Container): def Format(self, indent=0): |
