1

I am using Spaces from DigitalOcean to serve static assets of a django website. I am running into issues to set the cache policy.

By default no cache policy is set :

enter image description here

I modified the metadata of my file to add a cache-control setting and I can now see public,max-age=86400 in the HTTP response :

enter image description here

However there is still a request being made everytime I refresh or I navigate to a new page :

enter image description here

The file all.css is initally loaded from the fontawesome website and is now in the memory cache while the first four are always loaded from digital ocean.

Here's the response for the file that is cached :

enter image description here

Here are the settings for metadata in spaces :

enter image description here

What can I modify to get the caching to work ?

rafcha
  • 41
  • 4

0 Answers0