Skip to content

Commit

Permalink
webui: disable cache in httpd
Browse files Browse the repository at this point in the history
NextJS server already manages its cache. Double cacheing in httpd and NextJS creates unexpected behanior in production instances of the webui. See rucio/webui#504
  • Loading branch information
maany authored and bari12 committed Dec 19, 2024
1 parent 6aa88e6 commit 2c8a192
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webui/rucio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ LoadModule unique_id_module modules/mod_unique_id.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule cache_disk_module modules/mod_cache_disk.so

CacheEnable disk /
CacheRoot /tmp
Listen 80

Header set X-Rucio-Host "%{HTTP_HOST}e"
Expand All @@ -104,6 +102,7 @@ LogFormat "%h\t%t\t%{X-Rucio-Forwarded-For}i\t%T\t%D\t\"%{X-Rucio-Auth-Token}i\"
<VirtualHost *:443>

{{ common_virtual_host_config(port=443) }}
CacheDisable "/"
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>
Expand Down

0 comments on commit 2c8a192

Please sign in to comment.