{"action":"created","issue":{"url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1271","repository_url":"https://api.github.com/repos/pagespeed/mod_pagespeed","labels_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1271/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1271/comments","events_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1271/events","html_url":"https://github.com/pagespeed/mod_pagespeed/issues/1271","id":134371341,"number":1271,"title":"Cache-Control being overwritten for application/json types","user":{"login":"tallstop","id":5264260,"avatar_url":"https://avatars.githubusercontent.com/u/5264260?v=3","gravatar_id":"","url":"https://api.github.com/users/tallstop","html_url":"https://github.com/tallstop","followers_url":"https://api.github.com/users/tallstop/followers","following_url":"https://api.github.com/users/tallstop/following{/other_user}","gists_url":"https://api.github.com/users/tallstop/gists{/gist_id}","starred_url":"https://api.github.com/users/tallstop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tallstop/subscriptions","organizations_url":"https://api.github.com/users/tallstop/orgs","repos_url":"https://api.github.com/users/tallstop/repos","events_url":"https://api.github.com/users/tallstop/events{/privacy}","received_events_url":"https://api.github.com/users/tallstop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-17T19:12:24Z","updated_at":"2016-02-29T19:19:03Z","closed_at":null,"body":"I have some web services that return JSON data with the Content-type of application/json.  PageSpeed is overwriting the Cache-Control headers I send even with \r\n\r\nModPagespeedModifyCachingHeaders off\r\n\r\nIt is always sending:\r\n\r\nCache-Control:max-age=0, no-cache\r\nWhile also killing my gzipping.  \r\n\r\nThe response headers before PageSpeed are:\r\nConnection:Keep-Alive\r\nContent-Encoding:gzip\r\nContent-Length:700\r\nContent-Type:application/json\r\nDate:Tue, 16 Feb 2016 22:09:57 GMT\r\nExpires:Tue, 16 Feb 2016 23:09:57 GMT\r\nKeep-Alive:timeout=2, max=1000\r\nServer:Apache\r\nServerID:php-dev01\r\nVary:Accept-Encoding\r\n\r\nThe headers after are:\r\nCache-Control:max-age=0, no-cache\r\nConnection:Keep-Alive\r\nContent-Length:5574\r\nContent-Type:application/json\r\nDate:Tue, 16 Feb 2016 22:10:24 GMT\r\nEtag:W/\"PSA-Xgxb1zUWTX\"\r\nExpires:Tue, 16 Feb 2016 23:03:43 GMT\r\nKeep-Alive:timeout=2, max=999\r\nServer:Apache\r\nServerID:php-dev02\r\nVary:Accept-Encoding\r\nX-Content-Type-Options:nosniff\r\nI am on the latest version and have tried everything I can think of to fix the Cache-Control and Content-Encoding.\r\n\r\nPlease help.  Thanks!"},"comment":{"url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/comments/190342089","html_url":"https://github.com/pagespeed/mod_pagespeed/issues/1271#issuecomment-190342089","issue_url":"https://api.github.com/repos/pagespeed/mod_pagespeed/issues/1271","id":190342089,"user":{"login":"jeffkaufman","id":262566,"avatar_url":"https://avatars.githubusercontent.com/u/262566?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffkaufman","html_url":"https://github.com/jeffkaufman","followers_url":"https://api.github.com/users/jeffkaufman/followers","following_url":"https://api.github.com/users/jeffkaufman/following{/other_user}","gists_url":"https://api.github.com/users/jeffkaufman/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffkaufman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffkaufman/subscriptions","organizations_url":"https://api.github.com/users/jeffkaufman/orgs","repos_url":"https://api.github.com/users/jeffkaufman/repos","events_url":"https://api.github.com/users/jeffkaufman/events{/privacy}","received_events_url":"https://api.github.com/users/jeffkaufman/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T19:19:03Z","updated_at":"2016-02-29T19:19:03Z","body":"Could you paste your pagespeed configuration file?\r\n\r\n(I'm specifically wondering if you have LoadFromFile turned on, but other things in there might be helpful to see.)"}}