selfoss
selfoss copied to clipboard
Mobile Website tries to load nonexistend path
When loading selfoss on iOS (Safari), it tries to load a js-file with wrong path. Log-Entry of nginx:
0.0.0.0 - - [30/Mar/2024:13:21:17 +0100] "GET /unread/index.runtime.22332b9a.js HTTP/2.0" 404 114 "https://rss.example.com/unread/all" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1"
The file is located in /public/, so I think, the loaded path should be /index.runtime.22332b9a.js.
Workaround (seems to have no side effects, but not completely sure)
location ~* ^/(unread|newest|starred)/(.+\.js) {
try_files /public/$2 =404;
}
Thanks for reporting. What version of selfoss are you running? I do not think 2.19 uses index.runtime.*.js
files.
Never mind, just remembered that this is caused by https://github.com/parcel-bundler/parcel/issues/9092, will try to look into fixing it there.