VirtoCommerce / vc-storefront-deprecated

VirtoCommerce Storefront for ASP.NET (.NET Framework) repository (DEPRECATED)
http://virtocommerce.com
Other
26 stars 112 forks source link

Create fallback url filter to allow use CDN alongside with local dependencies #37

Closed asvishnyakov closed 7 years ago

asvishnyakov commented 7 years ago

I.e. I want to write something: {{ '//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js' | fallback: 'assets/js/jquery-2.2.4.min.js' | script_tag }} and get the following behavior:

  1. File on remote CDN checked for existence (200 code)
  2. It downloaded and used
  3. If any error occurs, local file will be used