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

perf: cache all api responses using a webworker #882

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

NoamGaash
Copy link
Member

Description

Add a service worker to cache GET requests for specific backend and external resources (e.g., open-bus-stride-api, fonts.googleapis.com), excluding HTML, CSS, and JS files. This reduces server load by serving cached responses for those URLs, while ensuring that the latest versions of static assets are always fetched from the network.

@NoamGaash NoamGaash force-pushed the perf/cache-all-api-responses-using-a-webworker branch from 6ae82c8 to bb51fb1 Compare September 24, 2024 04:54
@NoamGaash NoamGaash force-pushed the perf/cache-all-api-responses-using-a-webworker branch from bb51fb1 to c74ef85 Compare September 24, 2024 05:16
@NoamGaash NoamGaash merged commit db0294f into main Sep 24, 2024
15 checks passed
@NoamGaash NoamGaash deleted the perf/cache-all-api-responses-using-a-webworker branch September 24, 2024 07:02
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 this pull request may close these issues.

1 participant