aboutsummaryrefslogtreecommitdiff
path: root/src/cache.c
AgeCommit message (Collapse)Author
2024-08-07Make Dillo C99 standard compliantRodrigo Arias Mallo
Reviewed-by: dogma
2024-04-26Improve quirk for text/xhtml content typeRodrigo Arias Mallo
When a <meta> tag reports the "text/xhtml" content, we were correcting it to the type guessed in TypeDet. However, the current implementation to guess XHTML and HTML pages fails if the doctype is not at the start of the document, falling back to text/plain. A more robust solution is to set the TypeNorm to "application/xhtml+xml", which can be handled by a_Mime_get_viewer() as an HTML-like document. Reported-by: Kevin Koster <dillo@ombertech.com> See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/7GJ4AAMFFPEHOIYEOH4NHVMSXMJDFYXG/
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2016-07-06Fix a flag in Cache_entry_inject(). Now the splash page is shown as finished.Jorge Arellano Cid
2016-07-03clean up host:port usage, particularly with ipv6corvid
2016-05-07status msgcorvid
2016-04-09if we get an error (e.g. ECONNRESET) while reading, abort the read and show ↵corvid
a status message
2016-03-12MSGcorvid
2015-06-29prefs.http_strict_transport_securitycorvid
2015-06-29HTTP Strict Transport Securitycorvid
I'm not including the preload file yet.
2015-05-31rm MSGcorvid
2015-05-31rm MSGcorvid
2015-04-11provide a redirection-blocked pagecorvid
2014-12-24merge 3.0.4.1 branchcorvid
2014-12-21more (and indentation in one spot)corvid
2014-12-20Fix: Abort redirections and META-refresh for URLs marke "local".Jorge Arellano Cid
2014-10-10URL in MSGcorvid
2014-09-10cache abort: don't skip clientscorvid
2014-08-10trim spacescorvid
...now that floats and grows are in the repo and I won't be making Sebastian's life difficult with a bunch of whitespace changes.
2014-08-08abort failed queriescorvid
http://lists.dillo.org/pipermail/dillo-dev/2014-July/010190.html and no one objected, and it hasn't given me any trouble, so...
2014-07-17http persistent connections initial patchcorvid
2014-06-24Reimplemented the Dicache using dlib ADTsJorge Arellano Cid
For a long time it had a custom ADT with a list of nodes and each node a linked list (with pointers). The last memory bug motivated me to try to normalize it to use dlib. Now, it got simpler, shorter, and possibly faster (although conversion wasn't a simple task). PD: It also uses less memory now.
2014-05-14Avoid removing imgbuf and decoding the whole image again for reloads.Jorge Arellano Cid
Using the same testing files as the previous patch, the results are: .---------------------------------------------. |imgbufs | No patch | Patch #1 | Patch #2 | |---------------------------------------------- |1imgA.html | 2/1 | 1/1 | 1/0 | |2imgSA.html | 3/2 | 1/2 | 1/0 | |3imgSA.html | 4/3 | 1/3 | 1/0 | |---------------------------------------------- |2imgA.html | 4/2 | 2/2 | 2/0 | |3imgA.html | 6/3 | 3/3 | 3/0 | '---------------------------------------------' n1/n2 means: n1 imgbufs were created for first load (empty cache) n2 imgbufs were created for reload (cached image) Notes: * Rendering is much faster. Easy to notice with Back operation. * Between four to five times on www.welt.de. * Corner cases can be more than ten times. Usually, it *feels* faster.
2013-01-05Remove redundant check in cache.c [by p37sitdu]Jorge Arellano Cid
2012-12-07rm never-used arg from Cache_client_dequeuecorvid
Last night I looked through the old cvs interface, and it never was used. For a little while, there was something like ...remove_raw() calling it, but that in turn was only called in one place, and only with NULLKey...
2012-10-24msgcorvid
2012-10-03introduce domainrc mechanismp37sitdu, corvid
2012-10-02rm filter_auto_requestscorvid
2012-08-25improve check for integer overflowJohannes Hofmann
As the behaviour of int overflow is not defined we rather check for it before incrementing the variable. Submitted-by: p37sitdu@lavabit.com
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-09-24if not following a redirection, show body of redirecting pagecorvid
as suggested by Axel Beckert in http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-September/008992.html
2011-09-18rename fncorvid
Trying to make it a little clearer. It's surprising how there isn't a good, brief, clear term for this. Discussion of the concept tends to start using words like "administration" and "control".
2011-09-16privacy: never accept cookies in responses to third-party requestscorvid
as mentioned in section 7.1 of RFC 6265
2011-09-02Cancel the expected URL after offering a download, part 2 (BUG#982)Jorge Arellano Cid
There was a convoluted way of using an already freed bw: first, one bw asks for a page, and that becomes conn->bw, and then another bw starts also asking for the page, and the first bw closes, invalidating the conn->bw, and then the second bw closes and the cancel expect code tries to use the old bw. Fixed now.
2011-07-10MSG giving HTTP status if page was emptycorvid
Sometimes a server will send, say, 500 Internal Server Error with a Content-Length of 0, and Dillo just happily shows the empty page instead of the document that you thought you were going to get, and it's confusing.
2011-05-20free content/transfer decoder in Cache_entry_freecorvid
This leak had long made occasional appearances in Jeremy's valgrind logs, and I supposed it was some complicated CCC interaction, and didn't want to put a band-aid over the problem without knowing why it's happening first. But now I finally dug into it, and I see it coming from aborting in Cache_process_queue() (not viewable, for instance), and then a_Cache_process_dbuf() never gets IOClose, which makes a lot of sense!
2010-11-24trim some spacescorvid
2010-09-27Allow viewing XHTML served as suchJorge Arellano Cid
2010-09-05consistent screaming quotesJeremy Henty
2010-04-27back out cef38874b78fcorvid
Surprising that it took a week for me to notice anything was wrong.
2010-04-20allow image/stylesheet redirection if using filtercorvid
2010-04-06filter automatic requestscorvid
same_domain option in preference so that spying on users isn't so easy.
2010-03-18some remove_fast at freeall() timecorvid
2010-02-25don't accept ' ' between http header field name and ':'corvid
It's a bit unclear from rfc2616. The httpbis folks found (http://wiki.tools.ietf.org/wg/httpbis/trac/ticket/30) that those implementations that did accept it generally treated the space as part of the name, so it has been disallowed. The current relevant bit of the httpbis draft spec says exactly "No whitespace is allowed between the header field name and colon."
2010-02-25more robust http header field parsingcorvid
I noticed that I could trick it with a field like "Content-TypexContent-Type: text/html\n", and I didn't like that.
2010-02-25trim trailing whitespace from HTTP header fieldscorvid
Reported by Andreas Kemnade http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-February/007353.html
2010-01-09don't look for Set-Cookie2 headercorvid
2010-01-09cookies use server date to interpret Expires attrcorvid
2009-11-11functions needn't be publicly visiblecorvid
2009-11-09Minor fix for 3f1501ae35c4 (only remove cache entries upon OfferDownload)Jorge Arellano Cid