This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ebff8d75f Serve /schemas/ from the S3 bucket/Cloudfront too. (#1228)
2ebff8d75f is described below

commit 2ebff8d75f3480dd2c76173462dfec11513c988a
Author: Ash Berlin-Taylor <[email protected]>
AuthorDate: Thu Aug 14 15:00:21 2025 +0100

    Serve /schemas/ from the S3 bucket/Cloudfront too. (#1228)
    
    This gives us a place outside of versioned docs to Publish Open API or JSON
    schemas.
    
    I removed the `NC` flag which makes it do a case-insensitve comparission as
    the case actually matters here, if we have a request to `/Docs` it will 404,
    so there's no point sending it to S3
---
 landing-pages/site/static/.htaccess | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/landing-pages/site/static/.htaccess 
b/landing-pages/site/static/.htaccess
index 3eb8eb51a4..bdec827138 100644
--- a/landing-pages/site/static/.htaccess
+++ b/landing-pages/site/static/.htaccess
@@ -1,6 +1,7 @@
 RewriteEngine On
 
-RewriteCond %{REQUEST_URI} ^/docs [NC]
+RewriteCond %{REQUEST_URI} ^/docs [OR]
+RewriteCond %{REQUEST_URI} ^/schemas/
 RewriteCond %{REQUEST_URI} !^/docs/index\.html$ [NC]
 RewriteCond %{REQUEST_URI} !^/docs/index\.xml$ [NC]
 RewriteRule (.*) https://d7fnmbhf26p21.cloudfront.net/$1 [P]

Reply via email to