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

✨ Feature Request - Implement Browser Caching for /profile Page #32

Open
Abhishek-Mallick opened this issue Sep 19, 2024 · 2 comments
Assignees
Labels
hacktoberfest to mark issues accepted under hacktoberfest help wanted Extra attention is needed server Server Logic of Devhub

Comments

@Abhishek-Mallick
Copy link
Member

Is this feature request related to a problem with DevHub? Please describe.

The current implementation of the /profile page requires multiple API calls to fetch data every time the page is refreshed or accessed, leading to stale data being rendered. Implementing browser caching can help improve performance and reduce unnecessary API calls.

Describe the solution needed

  • Implement browser caching for the data fetched from the following APIs when the /profile page is accessed:
    • GitHub data
    • Top languages
    • Streak stats
    • Pinned repositories
    • LeetCode card
  • Set a cache expiration policy to periodically update the cached data.
  • Ensure that the cache is invalidated and refreshed when relevant user actions occur (e.g., adding a project or sending a friend request).

Describe alternatives considered
Currently, all data is fetched anew on each page load, which may not be efficient. Alternatives could include server-side caching or using state management libraries to store data temporarily, but these may not address the performance issues as effectively as browser caching.

How will this feature improve DevHub?
Implementing browser caching will enhance user experience by reducing load times and minimizing unnecessary API calls, leading to a more responsive application.

Additional context
Consider using libraries like localForage or leveraging built-in browser caching mechanisms to implement this feature effectively.

@Abhishek-Mallick Abhishek-Mallick added help wanted Extra attention is needed server Server Logic of Devhub labels Sep 19, 2024
@Abhishek-Mallick Abhishek-Mallick added the hacktoberfest to mark issues accepted under hacktoberfest label Oct 1, 2024
@IbrahimHamshari
Copy link
Contributor

I can work on this issue if you don't mind.

@Abhishek-Mallick
Copy link
Member Author

Sure go ahead!
Assigned!

@IbrahimHamshari IbrahimHamshari removed their assignment Oct 14, 2024
@deepraj21 deepraj21 self-assigned this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest to mark issues accepted under hacktoberfest help wanted Extra attention is needed server Server Logic of Devhub
Projects
None yet
Development

No branches or pull requests

3 participants