6
keekung
8y

How to serve a static file when infra setup is something every hard to do?

<script src="/path/to/my/fav/lang.cxx?filename=mystaticfile.js" type="text/javascript" />

... Brilliant !

Comments
  • 0
    Holy shit this WORKS? :O
  • 1
  • 0
    Brilliant is not how I would describe it. There is a reason why people invented CDN. So that even if your infra is f#cked up, you can serve you static files from a simple place (with probably better latencies). But good job defeating all the work your ops might put into optimizing static file serving by dynamically serving said static files :) hopefully wisdom will come for you in nice way (not because your server is swamped)
  • 0
    @bolovsky well, in fact, i dont think it's brilliant though. It's what i was suggested to do. ...
  • 0
Add Comment