Local Proxy SVG Microicons using ColdFusion
I really like the idea of using a third-party for resources, but it's been painful relying on services over the years especially when they are retired with little or no annoucement.
There's a microservice called microicon that dynamically serves 1,200+ SVG icons from Material Design, Reline, Geomicons, and Simple Icons which allows the URL path to dictate size, color & direction. I was interested in using this, but not if it was going to disappear sometime in the future and break all of my apps. As a safeguard, I wrote a proxy script that will localize the remote SVG image in the background and serve them from the same host during future requests.
To accomplish this, SVG urls are required to match the IIS Rule and be prefixed with a "microicon" path and end with a "svg" file extension. Here are the scripts that I developed.
https://gist.github.com/JamoCA/21520be121528a2b4ad361060c360a28











