Opened 11 years ago
Last modified 10 years ago
#11625 review New Feature
Start using different hashes instead of timestamp for loading resources (via getUrl)
Reported by: | Wiktor Walc | Owned by: | Artur Delura |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Using timestamp to mark unique builds worked fine in the past where we released packages once per ~month.
Now, when lots of users try different builds, overwriting the same location and then scratching their heads why something does not work, we need to do something different. See for example http://ckeditor.com/forums/CKEditor/Bug-with-custom-builder-and-language-selection, there were more issues reported like this.
My suggestion is to go with assigning a random
hash when creating a build. There is no sense in calculating the hash based on the list of enabled plugins (and their versions, btw. we do not have this information in case of using command line builder), languages etc. Using a hash that is complex enough will do the trick.
Using 6-characters long hash that consists of small letters + numbers, gives ~1 838 265 625 (35^6
) combinations if I counted correctly (1.8 billion).
Change History (5)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
#10685 is quite related, once we introduce hashes we should also use them for URLs in CSS files
comment:4 Changed 10 years ago by
Owner: | set to Artur Delura |
---|---|
Status: | confirmed → assigned |
comment:5 Changed 10 years ago by
Status: | assigned → review |
---|
#10335 was marked as duplicate