Long time spent "Waiting for server response" for app icons

Hi OOD community,

We’re deploying Open OnDemand 4.0.1 on Rocky Linux 8, and overall, everything is running smoothly. However, we’ve noticed a significant delay in the server response when loading application icons, whether system or user dev apps.

SELinux is currently active, but we’ve tested with it disabled, and the issue remains.

Has anyone encountered this before or has any insights into what might be causing it?

Thanks!

We should be caching these images. Unfortunately, we’re not doing that anymore. At one point I was sure we did, but now apparently we don’t.

So I’ve created this bug ticket upstream to fix the same:

Thanks for the update, Jeff. I appreciate you looking into it and creating the upstream bug ticket.

Just to clarify, is there any workaround in the meantime for the missing image cache?

Please keep me posted if there are any updates or timelines for the fix. Thanks again!

I’m a bit snowed in with OSC work, so I can’t really investigate this much at this time.

That said - off the top of my head you can use custom_vhost_directives to supply a directive that resets the cache header. Something like Header set Cache-Control <the setting you want>

Thanks for the suggestion, Jeff. I’ve applied a temporary fix using custom_vhost_directives, with the following directive:

  - '<LocationMatch "^/pun/sys/dashboard/apps/icon/.*$">'
  - '  Header set Cache-Control "public, max-age=2592000"'
  - '</LocationMatch>'

With this in place, icon images are now being cached properly in the browser, which should help reduce unnecessary reloads until the upstream bug is resolved.

Thanks again for the pointer!

1 Like