You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Christoph K. (JIRA)" <ji...@apache.org> on 2016/06/10 05:45:21 UTC

[jira] [Comment Edited] (TS-4205) Plugin to allow nocache only for some ip-ranges

    [ https://issues.apache.org/jira/browse/TS-4205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15323912#comment-15323912 ] 

Christoph K. edited comment on TS-4205 at 6/10/16 5:44 AM:
-----------------------------------------------------------

Sorry for the late response. I couldn't make this work so far and did not have the time to look closer at it.

{code:title=header_rewrite-config}
cond %{CLIENT-IP} =192.168.1.20
set-config proxy.config.http.cache.ignore_client_cc_max_age 0

cond %{CLIENT-IP} =192.168.1.20
set-config proxy.config.http.cache.ignore_client_no_cache 0
{code}

In records.config those parameters were set to 1 and i didn't get any requests on the backend as long as the document i tested with was valid.
Even if it worked i guess it would be pretty hard to check on X-Forwarded-For-Header as well, especially when there is more than one value in it and you have to check for trusted proxies.


was (Author: hoody):
Sorry for the late response. I didn't manage to make this work so far and did not have the time to look closer at it.

{code:title=header_rewrite-config}
cond %{CLIENT-IP} =192.168.1.20
set-config proxy.config.http.cache.ignore_client_cc_max_age 0

cond %{CLIENT-IP} =192.168.1.20
set-config proxy.config.http.cache.ignore_client_no_cache 0
{code}

In records.config those parameters were set to 1 and i didn't get any requests on the backend as long as the document i tested with was valid.
Even if it worked i guess it would be pretty hard to check on X-Forwarded-For-Header as well, especially when there is more than one value in it and you have to check for trusted proxies.

> Plugin to allow nocache only for some ip-ranges
> -----------------------------------------------
>
>                 Key: TS-4205
>                 URL: https://issues.apache.org/jira/browse/TS-4205
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Christoph K.
>            Priority: Minor
>             Fix For: sometime
>
>
> Would be nice if there was an easy way to allow sending nocache for some ip-ranges / addresses only and ignore all the others. Right now the only option is to allow or none.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)