File viewer has the filename in the url. The filename could end with .js, and seems to get rewritten onto the CDN. For example: https://addons.allizom.org/z/en-US/firefox/files/browse/115275/file/defaults/preferences/yslow.js Becomes: https://addons-cdn.allizom.org/z/en-US/firefox/files/browse/115275/file/defaults/preferences/yslow.js Either we can a) stop using the filename in the file viewer (although I kind of like it) or b) white list /files/browse/ and /files/compare/ so they don't.
After chatting to clouserw can we go with item b) please.
Assignee: nobody → jeremy.orem+bugs
Did this in preview/next: - RewriteCond %1 \.(css|gif|ico|jpg|js|jsi18n|png|svg|woff)$ + RewriteCond %1 \.(?:css|gif|ico|jpg|js|jsi18n|png|svg|woff)$ + RewriteCond %1 !/files/(?:browse|compare)/ Can someone try it out?
Don't think so, looks like the URL is still being rewritten.
Should be fixed now.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Looks good, thanks.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.