{"action":"created","issue":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1006","labels_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1006/comments","events_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1006/events","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1006","id":103082354,"number":1006,"title":"CSS minification sometimes doesn't work with combination","user":{"login":"Fonger","id":5862369,"avatar_url":"https://avatars.githubusercontent.com/u/5862369?v=3","gravatar_id":"","url":"https://api.github.com/users/Fonger","html_url":"https://github.com/Fonger","followers_url":"https://api.github.com/users/Fonger/followers","following_url":"https://api.github.com/users/Fonger/following{/other_user}","gists_url":"https://api.github.com/users/Fonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Fonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fonger/subscriptions","organizations_url":"https://api.github.com/users/Fonger/orgs","repos_url":"https://api.github.com/users/Fonger/repos","events_url":"https://api.github.com/users/Fonger/events{/privacy}","received_events_url":"https://api.github.com/users/Fonger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T17:59:18Z","updated_at":"2015-08-25T18:48:34Z","closed_at":null,"body":"Sometimes, pagespeed render my page with the following css\r\n```html\r\n<link rel=\"stylesheet\" href=\"/shop/plugins,_bootstrap,_css,_bootstrap.min.css+css,_app.css+css,_shop.plugins.css+css,_shop.blocks.css+css,_shop.style.css+css,_headers,_header-v5.css+css,_footers,_footer-v4.css+plugins,_font-awesome,_css,_font-awesome.min.css+plugins,_scrollbar,_css,_jquery.mCustomScrollbar.css+plugins,_owl-carousel,_owl-carousel,_owl.carousel.css+plugins,_revolution-slider,_rs-plugin,_css,_settings.css+plugins,_jquery-steps,_css,_custom-jquery.steps.css+css,_pages,_log-reg-v3.css+css,_custom.css+plugins,_pnotify.custom.min.css.pagespeed.cc.1uVBvKwN3f.css\">\r\n```\r\nAnd this won't minify its content.\r\n\r\nAfter refresh, it will become\r\n```html\r\n<link rel=\"stylesheet\" href=\"/shop/A.plugins,,_bootstrap,,_css,,_bootstrap.min.css+css,,_app.css+css,,_shop.plugins.css+css,,_shop.blocks.css+css,,_shop.style.css+css,,_headers,,_header-v5.css+css,,_footers,,_footer-v4.css+plugins,,_font-awesome,,_css,,_font-awesome.min.css+plugins,,_scrollbar,,_css,,_jquery.mCustomScrollbar.css+plugins,,_owl-carousel,,_owl-carousel,,_owl.carousel.css+plugins,,_revolution-slider,,_rs-plugin,,_css,,_settings.css+plugins,,_jquery-steps,,_css,,_custom-jquery.steps.css+css,,_pages,,_log-reg-v3.css+css,,_custom.css+plugins,,_pnotify.custom.min.css,Mcc.1uVBvKwN3f.css.pagespeed.cf.VD-AChsbZb.css\">\r\n```\r\n\r\nIt has double comma `,,` and the minification works with this version.\r\nAnd after a while, I reload the page and nginx will serve the first version and minification doesn't work.\r\n\r\nHere is my nginx server configuration\r\n\r\n```\r\nserver {\r\n\tlisten 80;\r\n\tserver_name .pagespeed.doesnt.work;\r\n\treturn 301 https://$host$request_uri;\r\n}\r\nserver {\r\n\tlisten 443 ssl spdy;\r\n\tserver_name pagespeed.doesnt.work www.pagespeed.doesnt.work;\r\n        ssl_certificate /etc/nginx/ssl/pagespeed.doesnt.work/cert.pem;\r\n        ssl_certificate_key /etc/nginx/ssl/pagespeed.doesnt.work/cert.key;\r\n\tadd_header Strict-Transport-Security \"max-age=31536000; includeSubdomains\";\r\n\r\n\tpagespeed on;\r\n\r\n\t# Needs to exist and be writable by nginx.  Use tmpfs for best performance.\r\n\tpagespeed FileCachePath /tmp/pagespeed_cache;\r\n\r\n\t# Ensure requests for pagespeed optimized resources go to the pagespeed handler\r\n\t# and no extraneous headers get set.\r\n\tlocation ~ \"\\.pagespeed\\.([a-z]\\.)?[a-z]{2}\\.[^.]{10}\\.[^.]+\" {\r\n\t\tadd_header \"\" \"\";\r\n\t}\r\n\tlocation ~ \"^/pagespeed_static/\" { }\r\n\tlocation ~ \"^/ngx_pagespeed_beacon$\" { }\r\n\r\n\tpagespeed RewriteLevel CoreFilters;\r\n\tpagespeed EnableFilters collapse_whitespace,remove_comments;\r\n\tpagespeed EnableFilters defer_javascript;\r\n\tpagespeed DisableFilters add_head;\r\n\r\n\tpagespeed MapOriginDomain \"http://localhost\" \"https://pagespeed.doesnt.work\";\r\n\tpagespeed LoadFromFile \"https://pagespeed.doesnt.work\" \"/home/fonger/pagespeeddoesntwork/frontend\";\r\n        pagespeed MapOriginDomain \"http://localhost\" \"https://www.pagespeed.doesnt.work\";\r\n        pagespeed LoadFromFile \"https://www.pagespeed.doesnt.work/\" \"/home/fonger/pagespeeddoesntwork/frontend\";\r\n\r\n\troot    /home/fonger/pagespeeddoesntwork/frontend;\r\n\r\n    location ~ ^/(panel|ajax|verify) {\r\n            proxy_set_header HOST $host;\r\n            proxy_set_header X-Forwarded-Proto $scheme;\r\n            proxy_set_header X-Real-IP $remote_addr;\r\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n            proxy_pass http://127.0.0.1:5000;\r\n    }\r\n    # My website is angular router based (ajax) page with html5 mode\r\n    location / {\r\n        index  main.html;\r\n        try_files $uri $uri/ /main.html =404;\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/comments/134699185","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1006#issuecomment-134699185","issue_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1006","id":134699185,"user":{"login":"Fonger","id":5862369,"avatar_url":"https://avatars.githubusercontent.com/u/5862369?v=3","gravatar_id":"","url":"https://api.github.com/users/Fonger","html_url":"https://github.com/Fonger","followers_url":"https://api.github.com/users/Fonger/followers","following_url":"https://api.github.com/users/Fonger/following{/other_user}","gists_url":"https://api.github.com/users/Fonger/gists{/gist_id}","starred_url":"https://api.github.com/users/Fonger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fonger/subscriptions","organizations_url":"https://api.github.com/users/Fonger/orgs","repos_url":"https://api.github.com/users/Fonger/repos","events_url":"https://api.github.com/users/Fonger/events{/privacy}","received_events_url":"https://api.github.com/users/Fonger/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T18:48:34Z","updated_at":"2015-08-25T18:48:34Z","body":"This is strange, the error sometimes become the following\r\nAnd I have to refresh 2 times (1 for expired and 1 for resource headers error) to get the `cf` version\r\n\r\nHow can I define my resources valid time? I think the default value is 3600 seconds. Even if I clear cache and restart nginx, it still expires within just few minutes.\r\n\r\n\r\nResource headers are preventing rewriting of https://gogolohas.net/shop/plugins,_bootstrap,_css,_bootstrap.min.css+css,_app.css+css,_shop.plugins.css+css,_shop.blocks.css+css,_shop.style.css+css,_headers,_header-v5.css+css,_footers,_footer-v4.css+plugins,_font-awesome,_css,_font-awesome.min.css+plugins,_scrollbar,_css,_jquery.mCustomScrollbar.css+plugins,_owl-carousel,_owl-carousel,_owl.carousel.css+plugins,_revolution-slider,_rs-plugin,_css,_settings.css+plugins,_jquery-steps,_css,_custom-jquery.steps.css+css,_pages,_log-reg-v3.css+css,_custom.css+plugins,_pnotify.custom.min.css.pagespeed.cc.1uVBvKwN3f.css\r\n"}}