Skip to content

Implement Cache-Control: immutable #7224

@mfr-itr

Description

@mfr-itr

Steps to reproduce

  1. Reload a nextcloud page, for example the Files app

Expected behaviour

The js and css files have a file hash in the URL, for example /css/core/eb4f51d7ec0ed68ba27ebcd1548755aa-server.css?v=a08c1ea900eef4f5e2c1cd1fd55d4117-0. The browser shouldn't have to validate its cache since the file will never change.

Actual behaviour

The browser issues a request, with a 304 response from the server

Solution

Implement the Cache-Control: immutable Cache-Control extension.

Server configuration

Nextcloud version: (see Nextcloud admin page)
12.0.3

Client configuration

Browser: Firefox 57

Operating system: Archlinux

It could also help with #2272.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions