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

Cache just the home page. Fix caching of offline page #852

Merged
merged 8 commits into from
Sep 3, 2020
Merged

Conversation

vidya-ram
Copy link
Member

No description provided.

@@ -0,0 +1,17 @@
{% extends "layout.html.jinja2" %}
{% block title %}{% trans %}Logout{% endtrans %}{% endblock %}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a bit of content explaining that the logout is in progress. We have a similar case in meta_refresh.html.jinja2.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This helps, but I was referring to the body. Users will see a blank page for a second or so. We might as well show "Logging out…" in the middle of the screen for that second.

@vidya-ram vidya-ram requested a review from jace September 2, 2020 11:22
Copy link
Member

@jace jace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a logout message in the body of the page (not just title). Otherwise all okay.

@vidya-ram vidya-ram merged commit ad536ce into master Sep 3, 2020
@vidya-ram vidya-ram deleted the offline branch September 3, 2020 06:45
vidya-ram added a commit that referenced this pull request Nov 23, 2021
* Cache just the home page. Fix caching of offline page

* On logout, render a logout template and clear service worker caches in the page. Create a new cache for caching just the homepage. Clear the old cache routes to reduce cache size.

* Don't cache the JS files. Delete the cache  routes and precache

* Move clearing cache to homepage

* Change logout page title

* Remove flash message
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

Successfully merging this pull request may close these issues.

None yet

2 participants