DemocracyClub / yournextrepresentative

👥 A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk
GNU Affero General Public License v3.0
21 stars 27 forks source link

Use manifest entry for SOPN matcher Svelte app #2288

Open symroe opened 4 months ago

symroe commented 4 months ago

At the moment, Django doesn't include a hash part in the URL for the SOPN page matcher.

This means that some users are going to be using out of date versions, because of caching.

We should use a manufest entry for serving the file.

It's possible that Django Svelte has the answer already, but it's not clear that this is true:

https://github.com/thismatters/django-svelte/?tab=readme-ov-file#installation