diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 09:26:33 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-09-17 09:26:33 +0300 |
commit | ce487d3d0b39ff9a74876527935e063243d96926 (patch) | |
tree | b8b6b6c899f674a0a80cb52126f9dff577a659e0 /src/ui/documentwidget.c | |
parent | 64a20813de671035c4a3a6d4b1568cf14f73f448 (diff) |
Only cache "text/*" content
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index e632a65c..87356c7a 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1149,7 +1149,8 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1149 | d->scrollY = d->initNormScrollY * size_GmDocument(d->doc).y; | 1149 | d->scrollY = d->initNormScrollY * size_GmDocument(d->doc).y; |
1150 | d->state = ready_RequestState; | 1150 | d->state = ready_RequestState; |
1151 | /* The response may be cached. */ { | 1151 | /* The response may be cached. */ { |
1152 | if (!equal_Rangecc(urlScheme_String(d->mod.url), "about")) { | 1152 | if (!equal_Rangecc(urlScheme_String(d->mod.url), "about") && |
1153 | startsWithCase_String(meta_GmRequest(d->request), "text/")) { | ||
1153 | setCachedResponse_History(d->mod.history, response_GmRequest(d->request)); | 1154 | setCachedResponse_History(d->mod.history, response_GmRequest(d->request)); |
1154 | } | 1155 | } |
1155 | } | 1156 | } |