Improving static content serving #53890

Closed
opened 2018-01-24 19:27:16 +01:00 by Francesco Siddi · 4 comments

When deploying new versions of Pillar-based web applications, it often happens that static resources (such as CSS) are not served to clients since they are cached from previous sessions.

Some documentation suggests to adopt a hybrid approach, which consists of using:

  • http headers for performance
  • resource naming for cache invalidation

While setting https headers is relatively easy, it remains to be decided which one is the best solution for renaming the resources themselves. For example, main.s7f0gd.css-> main.f89gha.css.

When deploying new versions of Pillar-based web applications, it often happens that static resources (such as CSS) are not served to clients since they are cached from previous sessions. [Some documentation](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching) suggests to adopt a hybrid approach, which consists of using: - http headers for performance - resource naming for cache invalidation While setting https headers is [relatively easy](https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess), it remains to be decided which one is the best solution for renaming the resources themselves. For example, `main.s7f0gd.css`-> `main.f89gha.css`.
Francesco Siddi self-assigned this 2018-01-24 19:27:16 +01:00

Added subscribers: @fsiddi, @dr.sybren, @pablovazquez

Added subscribers: @fsiddi, @dr.sybren, @pablovazquez

archive/blender-cloud#53434 was marked as duplicate of this issue

archive/blender-cloud#53434 was marked as duplicate of this issue
Francesco Siddi removed their assignment 2018-03-22 15:00:06 +01:00
Sybren A. Stüvel was assigned by Francesco Siddi 2018-03-22 15:00:06 +01:00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Resolved in 12272750c3 (Pillar), 5f07c7ce17671 (Cloud) and some other commits in Attract, Flamenco, and SVNMan.

Resolved in 12272750c302 (Pillar), 5f07c7ce17671 (Cloud) and some other commits in Attract, Flamenco, and SVNMan.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: archive/pillar#53890
No description provided.