Django per-site cache is not working properly
I'm facing some difficulties caching my website (JS, CSS, fonts, images).
When I use lighthouse, I got these results [Cache TTL are all None] while I'm already applying the per-site caching as
described in Django documentation.
`MIDDLEWARE = [
...
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
...
]
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_SECONDS = 2 592 000 # for 1 month
`
Is there any help in order to well cache the website? Tech used:
- Python 3.8
- Django 3.2
- Deployed through CPanel
Thanks