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

Improve content script performance by using browser cache properly #1929

Open
ameshkov opened this issue Nov 14, 2024 · 0 comments
Open

Improve content script performance by using browser cache properly #1929

ameshkov opened this issue Nov 14, 2024 · 0 comments

Comments

@ameshkov
Copy link
Member

ameshkov commented Nov 14, 2024

Issue Details

Currently, CoreLibs only partially uses cache as it ignores If-Modified-Since in the request headers.

Proposed solution

Here's what we should do:

  1. Send Last Modified header in the response that is equal to the time when the filtering engine was built or changed last time.
  2. Check If-Modified-Since in the requests and depending on its value return HTTP response with status 304 instead of trying to select cosmetic rules extra time.

Alternative solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants