aboutsummaryrefslogtreecommitdiff
path: root/304
diff options
context:
space:
mode:
Diffstat (limited to '304')
-rw-r--r--304/index.md70
1 files changed, 70 insertions, 0 deletions
diff --git a/304/index.md b/304/index.md
new file mode 100644
index 0000000..072a87c
--- /dev/null
+++ b/304/index.md
@@ -0,0 +1,70 @@
+Title: Images not loading for http://retro.hackaday.com
+Author: rodarima
+Created: Tue, 19 Nov 2024 08:37:24 +0000
+State: open
+
+Loading the website causes the images not to display. But following a link and then going back causes the images to properly load.
+
+Reported-by: Flea86
+
+--%--
+From: rodarima
+Date: Tue, 19 Nov 2024 20:07:05 +0000
+
+Reproducer:
+
+```html
+<img src="http://hackaday.com/wp-content/uploads/2011/11/pic.jpg">
+```
+
+The image returns a 301 redirect:
+
+```
+GET /wp-content/uploads/2011/11/pic.jpg HTTP/1.1
+Host: hackaday.com
+User-Agent: Dillo/3.1.1
+Accept: image/png,image/*;q=0.8,*/*;q=0.5
+Accept-Encoding: gzip, deflate
+DNT: 1
+Referer: http://hackaday.com/
+Connection: keep-alive
+
+
+HTTP/1.1 301 Moved Permanently
+Server: nginx
+Date: Tue, 19 Nov 2024 19:42:16 GMT
+Content-Type: text/html
+Content-Length: 162
+Connection: keep-alive
+Location: https://hackaday.com/wp-content/uploads/2011/11/pic.jpg
+cache-control: max-age=31536000
+x-rq: mad1
+
+<html>
+<head><title>301 Moved Permanently</title></head>
+<body>
+<center><h1>301 Moved Permanently</h1></center>
+<hr><center>nginx</center>
+</body>
+</html>
+```
+
+Dillo seems to ignore redirects on non-root requests like images:
+
+https://github.com/dillo-browser/dillo/blob/f3103cc4b6c369da96c7de487214a9e56eca755d/src/cache.c#L1240-L1242
+
+Also:
+
+https://github.com/dillo-browser/dillo/blob/f3103cc4b6c369da96c7de487214a9e56eca755d/src/cache.c#L1102-L1107
+
+This predates the git history (2007), so I don't know the context at which this was done. It looks simply unfinished.
+
+--%--
+From: kaimac1
+Date: Tue, 03 Dec 2024 16:11:17 +0000
+
+I was just looking at the old site and saw that this behaviour is described as intentional:
+
+> If Dillo requests an image and receives a response containing a redirection (i.e., pointing to a different URL), the redirection is not followed. These have a strong tendency to be advertisements.
+
+https://dillo-browser.github.io/old/FAQ.html#q28 \ No newline at end of file