This change exposes a redirect type configuration variable so that a
user can specify if they want to use 'temp' or 'permanent' redirects.
This change allows a user to switch to use a 'temp' redirect type
because Mozilla Firefox and Google Chrome cache the responses of '301
Moved Permanently'. Some users have multi tenant environments that have
different URLs for Horizon dashboards (Ubuntu - /horizon, CentOS -
dashboard). '302 Found' is not cacheable response which solves the issue
for multitenant users.
Change-Id: I81694d0ddeebafec7824f5b275d5fb504cd302b1
Closes-Bug: 1385133
Co-Authored-By: Alex Schultz <email address hidden>
Reviewed: https:/ /review. openstack. org/208462 /git.openstack. org/cgit/ openstack/ puppet- horizon/ commit/ ?id=8de1b6100bd 325e09b7964ba91 0183237b36b779
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8de1b6100bd325e 09b7964ba910183 237b36b779
Author: Sergii Golovatiuk <email address hidden>
Date: Mon Aug 3 14:30:27 2015 +0200
Make redirect type configurable
This change exposes a redirect type configuration variable so that a
user can specify if they want to use 'temp' or 'permanent' redirects.
This change allows a user to switch to use a 'temp' redirect type
because Mozilla Firefox and Google Chrome cache the responses of '301
Moved Permanently'. Some users have multi tenant environments that have
different URLs for Horizon dashboards (Ubuntu - /horizon, CentOS -
dashboard). '302 Found' is not cacheable response which solves the issue
for multitenant users.
Change-Id: I81694d0ddeebaf ec7824f5b275d5f b504cd302b1
Closes-Bug: 1385133
Co-Authored-By: Alex Schultz <email address hidden>