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

Update wakatime.js #4008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update wakatime.js #4008

wants to merge 1 commit into from

Commits on Oct 26, 2024

  1. Update wakatime.js

    This change optimizes error handling by setting a shorter cache duration for errors, ensuring they are cached briefly and revalidated quickly. Using a helper function, setCacheControlHeaders, streamlines cache control setup, making it consistent for both success and error responses. Additionally, renderResponse standardizes error formatting with a 500 status code, ensuring user-friendly error messages and clearer debugging for developers. This enhancement improves reliability and reduces stale error data.
    Ayush277 authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    520c7a3 View commit details
    Browse the repository at this point in the history