Module: Spree::Api::V3::HttpCaching
- Extended by:
- ActiveSupport::Concern
- Included in:
- Store::CategoriesController, Store::CountriesController, Store::CurrenciesController, Store::LocalesController, Store::Markets::CountriesController, Store::MarketsController, Store::PoliciesController, Store::ProductsController
- Defined in:
- app/controllers/concerns/spree/api/v3/http_caching.rb
Overview
Provides HTTP caching support for API v3 controllers
Strategy:
-
Guest users: Public HTTP caching with CDN support (5-15 min TTL)
-
Authenticated users: Private, no-store (no caching)
Uses ETag and Last-Modified headers for cache validation.