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.
Coverage remained the same at 100.0% when pulling ab822eac42ff3d4357c8170880f0a6911ef20f17 on 99designs:fix-purgely-surrogate-control-filter into 0f48431f8dc47a69cb8e701a710b972807f27e48 on CondeNast:master.
Coverage remained the same at 100.0% when pulling ab822eac42ff3d4357c8170880f0a6911ef20f17 on 99designs:fix-purgely-surrogate-control-filter into 0f48431f8dc47a69cb8e701a710b972807f27e48 on CondeNast:master.
Coverage remained the same at 100.0% when pulling 4ba42733813dfa36e83e1bf8384b3e5c96a6f02c on 99designs:fix-purgely-surrogate-control-filter into 0f48431f8dc47a69cb8e701a710b972807f27e48 on CondeNast:master.
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
https://github.com/CondeNast/purgely/issues/26