Like I said, the default HTTPD would not send cache-control headers.

— leif


> On Feb 17, 2021, at 8:16 AM, Alan Carroll <[email protected]> 
> wrote:
> 
> Hmmm. I would enable debug tags and add the "cache" tag. That should give you 
> information on why the cache isn't caching. You can also chat with us at 
> the-asf.slack.com <http://the-asf.slack.com/>, channel "#trafficserver".
> 
> On Wed, Feb 17, 2021 at 9:13 AM Milos Dodic <[email protected] 
> <mailto:[email protected]>> wrote:
> I already had cache defined in storage.config. As for volume.config, I've 
> added volumes, but it didn't change much (seems like an option to segment the 
> overall storage for cache).
> 
> On Wed, Feb 17, 2021 at 3:57 PM Alan Carroll 
> <[email protected] <mailto:[email protected]>> 
> wrote:
> You need to set up the "storage.config" and "volume.config" files to specify 
> the storage used to cache the objects.
> 
> On Tue, Feb 16, 2021 at 6:38 PM Milos Dodic <[email protected] 
> <mailto:[email protected]>> wrote:
> Basic caching setup?
> 
> 
> I am trying to have the most basic caching setup for a forward caching proxy. 
> Initially I tried changing the following options only:
> 
> CONFIG proxy.config.http.cache.http INT 1
> CONFIG proxy.config.reverse_proxy.enabled INT 0
> CONFIG proxy.config.url_remap.remap_required INT 0
> 
> I had no luck. After trying out a few things, I ended with something like 
> this:
> 
> CONFIG proxy.config.http.cache.http INT 1
> CONFIG proxy.config.reverse_proxy.enabled INT 0
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.http.cache.ignore_client_no_cache INT 1
> CONFIG proxy.config.http.cache.ignore_server_no_cache INT 1
> CONFIG proxy.config.http.cache.ignore_authentication INT 1
> CONFIG proxy.config.http.cache.cache_urls_that_look_dynamic INT 1
> CONFIG proxy.config.http.uncacheable_requests_bypass_parent INT 1
> CONFIG proxy.config.http.cache.required_headers INT X (tried 0,1 and 2)
> CONFIG proxy.config.http.push_method_enabled INT 1
> 
> Again, no luck. All I got was lots of MISS, and nothing was cached.
> I tried to cache by using the custom app with a forward proxy set to target 
> the ATS, and later by simply trying to curl na object from AWS S3 (https). In 
> the end, I brought up an Apache web server, and tried curling the basic http 
> index page. Still, nothing was cached.
> 
> How can I have the most basic setup in place (at least for now), that will 
> cache stuff like me pulling the index page from the apache web server? Or 
> cache everything even?
> What am I missing?
> 
> 
> Thanks!

Reply via email to