Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Add a flag disabling gzip compression to reg-publish-gcs-plugin #701

Open
takoshi opened this issue Jun 28, 2024 · 0 comments · May be fixed by #702
Open

New Feature: Add a flag disabling gzip compression to reg-publish-gcs-plugin #701

takoshi opened this issue Jun 28, 2024 · 0 comments · May be fixed by #702

Comments

@takoshi
Copy link

takoshi commented Jun 28, 2024

Is your feature request related to a problem? Please describe.

When developers try to build a private static web page(built by reg-suit) on GCP, it is more convenient to upload html/img/js files to GCS without gzip compression by reg-publish-gcs-plugin for the following reasons.

  • The simple solution for delivering files to limited users is building nginx on Cloud Run mounted GCS and enabling IAP for the Cloud Run service
  • GCS mount uses gcsfuse in the background. This tool has the constraint that the extensions of files compressed by gzip are not .gz(File transcoding). If extensions of the files compressed by gzip are .gz, we can use gzip_static_module on nginx, but it isn't. So, developers have to elaborately build the delivery system.
    • i.e., reg-publish-gcs-plugin uploads index.html with gzip compression to GCS, and nginx delivers the index.html file without the response header Content-Encoding: gzip, then the client displays the compressed index.html file without decompressing. As a result, the users can't read the page.

Describe the solution you'd like

The solution to the problem is that developers can select that reg-publish-gcs-plugin uploads files with or without gzip compression.

@takoshi takoshi changed the title Add disable gzip flag to reg-publish-gcs-plugin Add disable gzip compression flag to reg-publish-gcs-plugin Jun 28, 2024
@takoshi takoshi changed the title Add disable gzip compression flag to reg-publish-gcs-plugin New Feature: Add a flag disabling gzip compression to reg-publish-gcs-plugin Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant