High Traffic Causes Incorrect Handle Redirection (HTTP 200 instead of 301) #2554
Labels
bug
component: SEO
Search Engine Optimization
help wanted
Needs a volunteer to claim to move forward
high priority
performance / caching
Related to performance, caching or embedded objects
During periods of high demand, handle redirects for existing items are not functioning as expected. Normally, handle requests are properly redirected with a 301 status code. However, under heavy load, handle requests are returned as HTTP 200 with an empty page content, which deviates from the expected behavior.
Steps to Reproduce:
I used the following Bash script to simulate high traffic. This script makes wget requests to DSpace handles and logs if a 200 status code is returned.
(Run the script and monitor the log file (wget_log.txt) for occurrences of the 200 status code.)
Expected Behavior:
Handle URLs should redirect with a 301 status code, pointing to the correct destination URL.
Actual Behavior:
During periods of high demand, handle requests return an empty page with an HTTP 200 status code.
Environment:
DSpace version: 7.6
Operating System: Debian 11
Web Server: Nginx 1.18.0
Database: Postgres v13.11
OpenJDK Version: 11.0.20
This problem renders Server Side Caching (SSR) unusable, since responses with code 200 are always cached.
The text was updated successfully, but these errors were encountered: