RoR Enterprise: 1.19.5
Kibana and Elasticsearch 7.6.1
We have users that have access to multiple Kibana tenancies.
Some of these tenancies have dark theme enabled and some have it disabled.
If you switch from one tenancy to another, Kibana does not seem to apply the the theme correctly.
If you do an empty cache and hard reload the theme is applied, so it’s some sort of caching issue.
Hi @ronald.vanboven,
Interesting, did not investigate it yet, but I have a few ideas. Will add an internal ticket and notify this thread when it’s done.
me neither, the only thing I was able to reproduce is, when I switch the theme into a dark → save changes, but not reload a page, the chart changed colors.
Hi. Ronald and I checked the issue, and we found a cause of the issue. We use the below configuration in our Apache reverse proxy (that is used in front of Kibana for loadbalancing and failover).
<IfModule mod_expires.c> ExpiresActive On ExpiresDefault A0 ExpiresByType image/jpg "access plus 7 days" ExpiresByType image/gif "access plus 7 days" ExpiresByType image/jpeg "access plus 7 days" ExpiresByType image/png "access plus 7 days" ExpiresByType text/js "access plus 7 days" ExpiresByType image/swf "access plus 7 days" ExpiresByType text/css "access plus 7 days" ExpiresByType application/javascript "access plus 7 days" ExpiresByType application/x-shockwave-flash "access plus 7 days" ExpiresByType application/vnd.ms-fontobject "access plus 7 days" ExpiresByType application/x-font-woff "access plus 7 days" ExpiresByType image/x-icon "access plus 7 days" ExpiresByType image/svg+xml "access plus 7 days" </IfModule>
This causes the issue because some files are cached for (in this case) 7 days. It seems that in some way files are used for both dark and light mode, but the content of those files just changes (we did not check it, but it seems that way). We will probably keep the caching to prevent unneeded load on Kibana. If anyone knows how to solve this issue with the caching enabled, we would love to hear about it. Maybe there’s something that can be done in RoR, but I assume there is not to much that can be done from the ‘server side’.