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

Footer inconsistency at codesearch.d.n #122

Open
samueloph opened this issue Jun 21, 2023 · 1 comment
Open

Footer inconsistency at codesearch.d.n #122

samueloph opened this issue Jun 21, 2023 · 1 comment

Comments

@samueloph
Copy link
Member

The footer varies depending on whether we're looking at the home page or a search result's page:

https://codesearch.debian.net/

dcs-web 955c194 (modified)

https://codesearch.debian.net/search?q=sfsd&literal=1

dcs-web 1868978, see github.com/Debian/dcs

I could not identify how this happens or why.

@stapelberg
Copy link
Contributor

For me, it showed dcs-web b0a6428.

The solution to this surprising behavior is that the Service Worker caches the results page and does an API request in the background to fill in the actual results.

I opened Chrome’s developer tools, selected Application → Service Workers → Unregister, then reloaded the page. Now I see dcs-web 955c194.

I don’t know if we should be doing more to invalidate the cache here. We typically only bump it when there are changes to the Service Worker code.

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

No branches or pull requests

2 participants