Add option to forward cache-control headers to client#112
Add option to forward cache-control headers to client#112reef-actor wants to merge 1 commit intoAthlon1600:masterfrom
Conversation
|
Thanks for sharing this, any idea on how to stop the script removing cache-control headers ? I can see using your method above forwards the cache control heads. but i still seem to have two client caching settings, the below appears which using developer tools via chrome, i know your configuration works, as if i remove it, the second cache-control disappears, just need to remove the top one if possible ? Any help would be amazing, thanks cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 |
|
Using this change and setting |
|
Thank you for your reply, and the information. I must be doing something wrong i seem to be getting two cache-controls one from the orginal server, and the other well i'm trying to fight that one, i must be doing something totally wrong, haha, if i find out i'll post back, again thanks for your help. These are the two cache controls i get when using chrome developer tools: cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Sorry found the issue it was my server os adding the second cache-control. Thank you once again for sharing your work and helping. |
Setting
$config['allow_client_caching'] = truewill forward any provided cache-control headers to the client.Removing cache-control headers continues to be the default behavior.