Skip to content

Conversation

@GK-302
Copy link
Contributor

@GK-302 GK-302 commented Sep 16, 2025

Title :Remove unused response.clone in service worker fetch handler

Closes #293

📌 Description

Removes an unnecessary response.clone() in the service worker’s fetch event handler (sw.js). The first clone was never used, which caused minor inefficiency and reduced code clarity.

Details:

Only the clone used for caching is kept.
No functional changes; performance and readability improvement.

@netlify
Copy link

netlify bot commented Sep 16, 2025

👷 Deploy request for weather-available pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f8c5ffb

@sonarqubecloud
Copy link

@GauravKarakoti
Copy link
Owner

Good work @GK-302

@GauravKarakoti GauravKarakoti added bug Something isn't working good first issue Good for newcomers gssoc25 level 1 performance labels Sep 16, 2025
@GauravKarakoti GauravKarakoti merged commit a63d959 into GauravKarakoti:main Sep 16, 2025
5 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working good first issue Good for newcomers gssoc25 level 1 performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary response cloning in fetch event handler

2 participants