I am downloading a website I have using wget -r http://example.com but in order for the css files to not be cached, the website adds GET parameters to those files such as styles.css?foobar.
How can I make it download the file and strip ?foobar from it?
You could rename the files after wget completes.
find . -name '*\?*' | while read -r path ; do
mv "$path" "${path%\?*}"
done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With