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

feat: update the regex to match the new build output format #6163

Merged
merged 4 commits into from
Mar 13, 2023

Conversation

thiagodallacqua-hpe
Copy link
Contributor

Description

After we have migrated to vite (#5926) our build output is different, and we're now splitting the vendor chunk from the rest of the compiled assets for long-term cache.

This PR intends to update the regex for the HTTP cache to work with this new output.

Test Plan

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 58f4038
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/640f517cdbe1dd0008c6c7c8

master/internal/core.go Outdated Show resolved Hide resolved
Copy link
Contributor

@julian-determined-ai julian-determined-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect to see a Response Header of Cache-Control: public, max-age=31536000 for the following files based on this change which I do not see currently.

Please let me know if you are seeing something different or there is something I am missing.

Screen Shot 2023-03-10 at 11 11 27 AM

(screenshot showing no response headers)
Screen Shot 2023-03-10 at 11 18 20 AM

Copy link
Contributor

@julian-determined-ai julian-determined-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅ I am also going to note that non static assets are no longer being compressed for a similar reason, I made a ticket to fix the compression logic also: https://determinedai.atlassian.net/browse/WEB-1032

@thiagodallacqua-hpe thiagodallacqua-hpe merged commit ac586f9 into master Mar 13, 2023
@thiagodallacqua-hpe thiagodallacqua-hpe deleted the thiago/WEB-953 branch March 13, 2023 17:53
rb-determined-ai pushed a commit to rb-determined-ai/determined that referenced this pull request Mar 14, 2023
@dannysauer dannysauer added this to the 0.21.0 milestone Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants