Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The normal css system in Drupal 6 appends a dummy query string to each css link to force a client-side reload of the file after each cache flush.
The print module has its own code for inserting css files that doesn't take advantage of this mechanism. This may cause a client to see an outdated version of the printed page because an old copy of the css may still be in the browser's cache.
The attached patch adds this cache buster query string to print.css inserted by the print module to ensure up to date css on the client side without requiring an explicit refresh.
Comment | File | Size | Author |
---|---|---|---|
print.pages_.inc_.patch | 1.1 KB | Bodo Maass | |
Comments
Comment #1
jcnventura CreditAttribution: jcnventura commentedHi,
Thanks for the patch.. The implementation was wrong, as you were adding the query string in the wrong place, but the idea was correct. I've just committed a working fix to CVS.
João