Skip to content

HTTP caching issues while using the subfolder.conf file #17

@paolomainardi

Description

@paolomainardi

When using this image with the subfolder.conf configuration file, we basically miss all the needed caching headers on the static assets, we should backport this configuration: https://github.com/sparkfabrik/docker-php-drupal-nginx/blob/feature/d8/1.13.6-alpine/templates/default.conf#L100

To avoid problems like this one:

 ❯ curl -I https://www.example.com/de/de/themes/custom/example_corporate/images/logo.svg                                                     ✭
HTTP/2 200
server: nginx
date: Wed, 03 Apr 2019 11:05:09 GMT
content-type: image/svg+xml
content-length: 4621
last-modified: Wed, 03 Apr 2019 09:06:15 GMT
vary: Accept-Encoding
etag: "5ca47787-120d"
accept-ranges: bytes
via: 1.1 google
alt-svc: clear

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions