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

Optimize Privacy Center /fides.js download with cache headers and a local public/assets/fides.js file #3170

Closed
3 tasks
Tracked by #3105
NevilleS opened this issue Apr 26, 2023 · 1 comment · Fixed by #3272
Closed
3 tasks
Tracked by #3105
Assignees

Comments

@NevilleS
Copy link
Contributor

Description

In #3105 we refactored the Privacy Center to serve a custom bundle of the fides.js Javascript package, initialized with the tenant-specific configuration sourced from the Privacy Center backend. This works swimmingly, but needs some optimization before it's ready for production use.

Acceptance Criteria

  • Add reasonable cache headers to the /api/fides-js route to ensure both browsers and CDNs will cache the result
  • During the privacy-center build, copy the generic fides.js package to /public/assets/fides.js
  • Test that this "virtual" file is properly cached by browsers and CDNs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants