lib/evercookie/controller.rb
# Renders page with etag header for evercookie js script
Renders page with etag header for evercookie js script
Renders page with etag header for evercookie js script
def ec_etag
      if not cookies[Evercookie.cookie_etag].present?
        render :text => request.headers['If-None-Match'] || '', :status => 304
        return true
      end
      puts "cache value (#{Evercookie.cookie_etag}): #{cookies[Evercookie.cookie_etag]}"
      response.headers["Etag"] = cookies[Evercookie.cookie_etag]
      render text: cookies[Evercookie.cookie_etag]
    end
def ec_etag if not cookies [ Evercookie . cookie_etag ] . present? render :text => request . headers [ 'If-None-Match' ] || '' , :status => 304 return true end puts "cache value (#{Evercookie.cookie_etag}): #{cookies[Evercookie.cookie_etag]}" response . headers [ "Etag" ] = cookies [ Evercookie . cookie_etag ] render text : cookies [ Evercookie . cookie_etag ] end
Renders page with etag header for evercookie js script
Renders page with etag header for evercookie js script