iFixit / charge

A tool to upload static images for the site
3 stars 2 forks source link

Cache bust dev #9

Closed djmetzle closed 5 years ago

djmetzle commented 5 years ago

When we change a file in S3, we want to ping back to dev and CI to clear their local caches of those files.

We've implemented a DELETE responder in Code that does exactly this. We just need to curl -k -X DELETE https://<dev-server>/<key>.

The ruby code to accomplish this curl (without installing another Gem) was figured out by utilizing this tool: https://jhawthorn.github.io/curl-to-ruby/

I've manually QA'd this, and even reloaded Apache on the CI machine to pick up the recent static sucking changes.

qa_req 0

CC @danielbeardsley

Closes: https://github.com/iFixit/charge/issues/7

danielbeardsley commented 5 years ago

CR 👍

danielbeardsley commented 5 years ago

CR 👍

djmetzle commented 5 years ago

Thank you!

sterlinghirsh commented 5 years ago

CR :zap: