From #974350-69: Far Future setting for Origin Pull mode:
- A way to check that the css url() reference will be a far-future CDN url & what type it will be (version number, core, md5, mtime).
- API to see if that file has changed according to the rules; I will store the previous state, so doing a string comparison of the url is all I need most likely.
- A way to have CDN output relative URLs instead of absolute URLs (nice to have, also help with string comparison). I just might strip off the hostname and call it good for string comparison.
- API call to make sure the url for image.png is changed when it gets processed in the CDN module (if using caching) (md5 or mtime mode).
Comments
Comment #1
Wim LeersPostponing until somebody pings me because it is actually going to be used. No point in providing an API nobody uses.
Comment #2
Wim LeersNot quite the requested ones yet, but a subset are part of #1428530-13: Override CSS aggregation to ensure correct file URL altering for files referenced by CSS files:
D6:
D7:
Comment #3
Wim LeersIn #1452074: CDN module takes over CSS aggregation even when its status is disabled, a public
cdn_status_is_enabled()
function was added.Comment #4
Wim LeersIn #1515392: UFI mapping not correctly applied (fix + unit tests), a public
cdn_basic_farfuture_get_ufi_method()
function was added (implements second half of first requirement in OP).Comment #5
Wim LeersComment #6
Wim LeersThe code is much, much, much simpler in the Drupal 8 port of the CDN module. Just override the
cdn.file_url_generator
/Drupal\cdn\File\FileUrlGenerator
service and do whatever you please.Comment #7
Wim Leers