Skip to content

Generate hash for cachebusting add-on icons instead of relying on modification date #3095

Closed
mozilla/addons-server
#7608

Description

@diox

We cachebust add-on icons using the add-on last modification date. This means any modifications to the add-on will force clients to re-download the corresponding icon, even though it has not changed, which sucks for performance.

I implemented that in zamboni a while back and this commit could serve as inspiration: mozilla/zamboni@7983195

Activity

  1. self-assigned this
    on May 13, 2016
  2. diox commented on May 27, 2016

    @diox
    MemberAuthor

    Technically not an API-only thing, though it would affect it. Removing API label.

  3. removed their assignment
    on Aug 11, 2017
  4. self-assigned this
    on Feb 19, 2018
  5. diox commented on Feb 21, 2018

    @diox
    MemberAuthor

    QA:

    • URLs for existing icons should behave exactly like before: they should include a modified={number} bit that changes whenever the add-on is modified
    • URLs for new icons should include a modified={hash} bit that does not change when the add-on is modified. It should only change when the icon itself is updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions