module Middleman::CachingProxy::Extension::InstanceMethods
Public Instance Methods
proxy_with_cache(path:, template:, proxy_options:, fingerprint:)
click to toggle source
# File lib/middleman/caching_proxy/extension.rb, line 22 def proxy_with_cache(path:, template:, proxy_options:, fingerprint:) item = CacheItem.new( path: path, template: template, proxy_options: proxy_options, fingerprint: fingerprint ) will_use_cache = extensions[:caching_proxy].add(item) if !will_use_cache proxy item.path, item.template, item.proxy_options end end