Hello,
I have configured a static website with a Cloud Bucket and and Cloud Load Balancer that serves a bucket backend. It works well.
The problem I have though, is that the design currently uses multiple URLs for the same resource, see:
https://cloud.google.com/storage/docs/static-website#examples
So, basically, with an index page index.html, the routing is like this:
| URL | Redirection | Resource served |
|---|---|---|
| /contact/ | None | /contact/index.html |
| /contact/index.html | None | /contact/index.html |
| /contact | /contact/index.html | None |
There are several things I do not like here:
- There are two URLs for the same resource: /contact/ and /contact/index.html
- The URL /contact is redirected to /contact/index.html
What I would like is to have only one URL to access the resource, and an option to choose if it is the route with the trailing slash or not.
So, with the trailing slash option off, the routing would look like this:
| URL | Redirection | Resource served |
|---|---|---|
| /contact | None | /contact/index.html |
| /contact/ | /contact | None |
| /contact/index.html | /contact | None |
Any chance you could add this option?
EDIT: Fixed resource served for clarity