Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply filtered Surrogate-Control TTL value #34

Conversation

dennisroethig
Copy link

@dennisroethig dennisroethig commented Oct 6, 2016

Overview

While trying to find a solution to serve different TTLs for different page types I noticed that applied changes to the purgely_surrogate_control filter never make it through to the headers.

Details

Seems like this is a known issue but was never addressed. As we will likely require this functionality in the near future we thought it would make sense to fix that upstream. I'm happy to update/add specs where required if there's an interest in getting this fix merged.

Related issue

#26

@coveralls
Copy link

coveralls commented Oct 6, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling ab822ea on 99designs:fix-purgely-surrogate-control-filter into 0f48431 on CondeNast:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ab822ea on 99designs:fix-purgely-surrogate-control-filter into 0f48431 on CondeNast:master.

@dennisroethig
Copy link
Author

@tollmanz As you opened #26 do you mind to have a quick look on this and let me know if it's worth moving forward with this or not?

Thanks a lot

@@ -61,5 +61,6 @@ public function get_seconds() {
*/
public function set_seconds( $seconds ) {
$this->_seconds = $seconds;
$this->set_value( $this->prepare_value( $seconds ) );
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed the purgely_set_ttl helper function was also broken due to this missing

@coveralls
Copy link

coveralls commented Oct 6, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 4ba4273 on 99designs:fix-purgely-surrogate-control-filter into 0f48431 on CondeNast:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants