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

Refreshing doen't work correctly because of caching #23

Closed
derneuere opened this issue Dec 9, 2020 · 0 comments
Closed

Refreshing doen't work correctly because of caching #23

derneuere opened this issue Dec 9, 2020 · 0 comments
Labels
bug Something isn't working frontend

Comments

@derneuere
Copy link
Member

Comment by sim4city in discord:


Also, the frontend service worker is attempting to cache links to the backend because both servers are publicly accessible on the same port (:80) via nginx proxy, including links to /media/, /api/, /, etc.

Unfortunately, that is problematic for me because the web browser service worker does not show photos linked from the backend /media/... and etc. backend urls defined in ownphotos.urls.

Ctrl+R refresh gives me the frontend service worker when trying to view a photo link: .../media/photos/6bce9f3c09df581a6c82346a2847af401.jpg

That shows a blank white page from the service worker.

I worked around this by Ctrl+Shift+R to override the frontend service worker which forced the request to be made over the network to the backend django server.

That shows the jpeg file I expected.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

1 participant