diff options
| author | Morten Sorvig <msorvig@trolltech.com> | 2009-09-07 19:09:09 +0200 |
|---|---|---|
| committer | Morten Sorvig <msorvig@trolltech.com> | 2009-09-07 19:09:09 +0200 |
| commit | ba5893ed4262838bd83b7c025a3620b7114e5321 (patch) | |
| tree | 468e1fcee28bd98f6b127ceee9689875578ed0a8 | |
| parent | d2c2218e2fb1fa43379580295c98f7121a48e2b8 (diff) | |
Proper max-age syntax
| -rw-r--r-- | src/webclientserver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webclientserver.cpp b/src/webclientserver.cpp index bb80223..a05709c 100644 --- a/src/webclientserver.cpp +++ b/src/webclientserver.cpp @@ -142,13 +142,13 @@ QByteArray HttpResponse::toText() // 3. no-cache. For dynamic content. Not cached by the user-agent // and is re-downloaded on each request. if (neverExpires) { - text += QByteArray("Cache-control: max-age: 99999 \r\n"); // or -1? + text += QByteArray("Cache-control: max-age=9999999 \r\n"); // or -1? text += "eTag: 24 \r\n"; } else if (eTag.isEmpty() == false) { text += "eTag: " + eTag + "\r\n"; } else { text += QByteArray("Cace-control: no-cache \r\n"); - text += QByteArray("max-age: 0 \r\n"); + text += QByteArray("Cache-control: max-age=0 \r\n"); } text+= QByteArray("\r\n") |
