Open andrelcm opened 1 day ago
Have you tired making a favicon.ico to override the existing one etc?
Yes, I did. I made my own version of all favicons I saw in static folder in repository. However, despite using the same method for all, only favicon.svg worked.
Could be a cache issue, have you reloaded browser cache?
I don't think it is a caching issue. Please, look at the response headers (and codes) when I try to download the proper files:
favicon.svg: curl -I http://localhost:8080/favicon.svg
HTTP/1.1 200 OK
Date: Mon, 14 Oct 2024 21:34:32 GMT
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Last-Modified: Mon, 14 Oct 2024 10:59:14 GMT
Content-Type: image/svg+xml
Accept-Ranges: bytes
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 3367849
favicon.ico: curl -I http://localhost:8080/favicon.ico
HTTP/1.1 302 Found
Date: Mon, 14 Oct 2024 21:35:29 GMT
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Location: http://localhost:8080/login
Content-Length: 0
favicon-32x32.png: curl -I http://localhost:8080/favicon-32x32.png
HTTP/1.1 302 Found
Date: Mon, 14 Oct 2024 21:36:29 GMT
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Location: http://localhost:8080/login
Content-Length: 0
As you can see, only favicon.svg, the file that works, has a response code 200. All the others, regardless of its presence on static folder have the code 302, pointing to login page. This happens even for other type of files, like site.webmanifest. I can even ask for nonexisting files and the response will be the same: 302. Below, a screenshot of network tab in chrome, during page load (you can see the 302 - redirect codes for favicon files):
Installation Method
Docker
The Problem
Hi everyone, I followed the instructions I found here (https://github.com/Stirling-Tools/Stirling-PDF/issues/433) in order to change the favicon. I made new versions to all images that can be found in static folder. For the "favicon.svg", everything is fine, the image is loaded in main page. The problem is with browser favicon, the one in the title bar. It does not load my image, but the default one of Stirling. I tried downloading those images with wget from command line and discovered that the request is being redirected to root folder (which is not an image, of course). Am I doing something wrong? What could I investigate to try to solve this problem?
Version of Stirling-PDF
latest-fat (as today)
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
http://localhost:8080/favicon.ico
Docker Configuration
Relevant Log Output
Additional Information
Just to emphasize that "favicon.svg" works flawlessly, but the other icons, which are at the exact same location, not.
Browsers Affected
No response
No Duplicate of the Issue