-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
The 203-expires.conf nginx helper takes over URLs matching non-image files to set an expiration header:
location ~* ^/sites/default/(files/(?!private/)).+\.(pdf|doc|docx|txt|xls|xlsx|csv|ppt|pptx|pps|ppsx|odt|ods|odp|mp3|mov|mp4|m4a|m4v|mpeg|avi|ogg|oga|ogv|weba|webp|webm)$ {
...
}
Since there is no try_files $uri @drupal, Stage File Proxy doesn't work for these URLs. This results in the non-production sites in the GovCMS SaaS returning OpenResty 404 pages for these URLs, making it difficult to test non-image files in staging.
Is this by design, or is there another mechanism to support Stage File Proxy? Would there be any reason not to use the NGINX_DEFAULT_EXPIRES variable instead of this helper?
FYI In my local dev environment I've worked around the issue by adding:
/etc/nginx/conf.d/drupal/location_expires_append_drupal.conf:
try_files $uri @drupal;
Metadata
Metadata
Assignees
Labels
No labels