-
-
Notifications
You must be signed in to change notification settings - Fork 96
[BUG] css and images wont load in mobile #79
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@G-mike Can you test this with the apache image? I don't think it's the kimai image but the nginx set up.
And this does load style on my Pixel 3A phone, firefox. |
Maybe Cloudflare is caching assets and changing URLs, without adjusting the integrity part in eg:
I recently had a user who was running a pagespeed plugin in apache, that messed exactly like that with the asset tags. |
I found the problem: it's the Cloudflare's hide ip option that messes up the css |
So, problem is solved now? Can we close the issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Web interface doesn't load css and images on mobile.
Developer Console in Chrome returns (redacted):
Failed to find a valid digest in the 'integrity' attribute for resource 'https://PUBLIC_DOMAIN/build/app.8240996d.css' with computed SHA-256 integrity '############################################'. The resource has been blocked.
The problem doesn't occur when displaying on the desktop.
Displaying site on mobile in "Desktop site" (Chrome mobile) produces same error.
To Reproduce
Steps to reproduce the behaviour:
docker-compose.yml
as specified belowdocker-compose up -d
6.a. Load page on a mobile device on a public address
6.b. Load page on a desktop in mobile mode (ie via developer tools in Chrome)
Desktop (please complete the following information):
Command used to run the container
docker-compose up -d
Docker compose file (with passwords redacted)
Local.yaml file (with passwords redacted)
Nginx boilerplate server file - reverse proxy (with passwords redacted)
Additional context
Desktop version works OK.
Installation on this machine resulted in other errors described in issue #69
Reverse proxy is configured to serve https with HSTS enabled.
EDIT:
prod.log
is empty, I found that disabling Cloudflare IP proxy and clearing cache in Cloudflare, and clearing cache in browser fixes issue on everything except real chrome mobile (I cannot find cache for this specific site to clear).The text was updated successfully, but these errors were encountered: