You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/05/18 19:49:54 UTC

[GitHub] [trafficcontrol] mat1010 opened a new issue, #6842: HTTP_NO_CACHE never-cache scheme http only

mat1010 opened a new issue, #6842:
URL: https://github.com/apache/trafficcontrol/issues/6842

   ## This Bug Report affects these Traffic Control components:
   - Traffic Control Cache Config (`t3c`, formerly ORT)
   
   ## Current behavior:
   When selecting `HTTP_NO_CACHE` as DS type and having an https origin the `cache.config` is still generated with `scheme=http` this results in the scenario that requests are cached since the scheme has to be `https`   
   
   ## Expected behavior:
   The scheme used to access the origin should be reflected within `cache.config`
   
   ## Steps to reproduce:
   * TC version: 6.1.0
   * Create a service with `HTTP_NO_CACHE`
   * use https://example.org as origin
   * check the `cache.config` which still contains `dest_domain=example.org scheme=http action=never-cache` 
   
   Following parts in the code should cause this behaviour
   https://github.com/apache/trafficcontrol/blob/77d88c387aa8398bec5858434644b9f92bb65dfc/lib/go-atscfg/servercachedotconfig.go#L77
   https://github.com/apache/trafficcontrol/blob/77d88c387aa8398bec5858434644b9f92bb65dfc/lib/go-atscfg/servercachedotconfig.go#L80
   
   https://github.com/apache/trafficcontrol/blob/77d88c387aa8398bec5858434644b9f92bb65dfc/lib/go-atscfg/cachedotconfig.go#L139
   https://github.com/apache/trafficcontrol/blob/77d88c387aa8398bec5858434644b9f92bb65dfc/lib/go-atscfg/cachedotconfig.go#L142


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org