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 headers not being set for webP images #161

Open
norahine opened this issue May 18, 2021 · 0 comments
Open

Cache headers not being set for webP images #161

norahine opened this issue May 18, 2021 · 0 comments

Comments

@norahine
Copy link

I've added a caching policy for webP images (see code below), but the headers are not being set on webP images in S3. Note that they are being set on all the other types of files just fine.

Copied from config.rb:

cache_max_age = 60 * 60 * 24 * 365

caching_policy 'text/css', max_age: cache_max_age
caching_policy 'application/javascript', max_age: cache_max_age
caching_policy 'image/png', max_age: cache_max_age
caching_policy 'image/jpeg', max_age: cache_max_age
caching_policy 'image/gif', max_age: cache_max_age
caching_policy 'image/webp', max_age: cache_max_age
caching_policy 'image/svg+xml', max_age: cache_max_age
caching_policy 'text/html', max_age: 0

middleman version: (3.4.1)
middleman-s3_sync version: (3.3.10)

Does anybody have an idea what might be going wrong?

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

No branches or pull requests

1 participant