{"action":"closed","issue":{"url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1129","repository_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed","labels_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1129/comments","events_url":"https://api.github.com/repos/pagespeed/ngx_pagespeed/issues/1129/events","html_url":"https://github.com/pagespeed/ngx_pagespeed/issues/1129","id":135507263,"number":1129,"title":"CSS, JS not combing & Images are not rewriting","user":{"login":"isaumya","id":2124755,"avatar_url":"https://avatars.githubusercontent.com/u/2124755?v=3","gravatar_id":"","url":"https://api.github.com/users/isaumya","html_url":"https://github.com/isaumya","followers_url":"https://api.github.com/users/isaumya/followers","following_url":"https://api.github.com/users/isaumya/following{/other_user}","gists_url":"https://api.github.com/users/isaumya/gists{/gist_id}","starred_url":"https://api.github.com/users/isaumya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaumya/subscriptions","organizations_url":"https://api.github.com/users/isaumya/orgs","repos_url":"https://api.github.com/users/isaumya/repos","events_url":"https://api.github.com/users/isaumya/events{/privacy}","received_events_url":"https://api.github.com/users/isaumya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-22T18:53:41Z","updated_at":"2016-02-22T22:33:36Z","closed_at":"2016-02-22T22:33:36Z","body":"Hi,\r\nI'm very new to this pagespeed game and I do admit that I do not have much experience with it. I've recently moved my site to a nginx vps and asked my host to install page-speed in it, so he did. But even after reading most google pagespeed docs, and adding various filters in my `pagespeed.conf`, when I look at the source code of my site, I do see some pagespeed features are working but most things are not working, like css/js combination, image rewrite, webp rewrite etc. though I have all the proper filters set on my config.\r\nI have posted this issue to my host but I don't think they have much intensive pagespeed knowledge either. That is why you guys are my last beacon of hope. I know it is annoying to help out a noob, but please do if you can. Also I may not have much server config knowledge but I'm not a total noob that I can vouch for.\r\n\r\nAnyways here is my website link: https://www.isaumya.com (running on wordpress)\r\nHere is the pagespeed admin console link: http://vps.isaumya.com/pagespeed_admin/\r\n\r\nHere is my `pagespeed.conf` settings:\r\n\r\n````\r\npagespeed on;\r\n\r\n#######################################################\r\n# File cache settings\r\n######################################\r\n# needs to exist and be writable by nginx\r\n\r\n pagespeed FileCacheSizeKb          102400;\r\n pagespeed FileCacheCleanIntervalMs 3600000;\r\n pagespeed FileCacheInodeLimit      500000;\r\n\r\n######################################################\r\n# Mapping domain for HTTPS & Enabling HTTPS Fetch\r\n######################################################\r\n\r\n #pagespeed MapOriginDomain \"http://208.117.38.82\" \"https://www.isaumya.com\";\r\n\r\n#######################################################\r\n# By default, ngx_pagespeed adds an X-PageSpeed header with a value of the version of\r\n# ngx_pagespeed being used. This directive lets you specify the value to use instead:\r\n# pagespeed XHeaderValue \"ngx_pagespeed\";\r\n\r\n#######################################################\r\n# let's speed up PageSpeed by storing it in the super duper fast memcached\r\n# Ensure Memcached server installed http://centminmod.com/memcached.html\r\n# default install for centmin mod is on port 11211, so localhost:11211 is correct\r\n# uncomment - remove hash # in front of below 2 lines to enable\r\n# timeout set at 100 milliseconds\r\n#  pagespeed MemcachedThreads 1;\r\n#  pagespeed MemcachedServers \"localhost:11211\";\r\n#  pagespeed MemcachedTimeoutUs 100000;\r\n\r\n#######################################################\r\n## https://developers.google.com/speed/pagespeed/module/admin#virtual-hosts-and-stats\r\n######################################\r\n# pagespeed UsePerVhostStatistics on;\r\n\r\n#######################################################\r\n## 1.7.30.1 beta defaults\r\n######################################\r\npagespeed PreserveUrlRelativity on;\r\npagespeed MaxCombinedCssBytes -1;\r\npagespeed ImageResolutionLimitBytes 16777216;\r\n# pagespeed EnableFilters inline_google_font_css;\r\n\r\n#######################################################\r\n## 1.6.29.3 beta defaults\r\n######################################\r\npagespeed AvoidRenamingIntrospectiveJavascript on;\r\npagespeed ImageInlineMaxBytes 3072;\r\npagespeed CssImageInlineMaxBytes 0;\r\npagespeed MaxInlinedPreviewImagesIndex -1;\r\npagespeed MinImageSizeLowResolutionBytes 3072;\r\n\r\n#######################################################\r\n## ngx_pagespeed filters settings below ##\r\n######################################\r\n\r\n  # show half the users an optimized site, half the regular site\r\n  # change UA-XXXXXXXXXX-1 to your GA unique id\r\n  # uncomment - remove hash # in front of below 5 lines to enable\r\n#  pagespeed RunExperiment on;\r\n#  pagespeed AnalyticsID UA-XXXXXXXXXX-1;\r\n#  pagespeed ExperimentVariable 1;\r\n#  pagespeed ExperimentSpec \"id=1;percent=50;level=CoreFilters;enabled=collapse_whitespace,remove_comments;\";\r\n#  pagespeed ExperimentSpec \"id=2;percent=50\";\r\n\r\n  # Filter settings\r\n  # filters outlined at http://ngxpagespeed.com/ngx_pagespeed_example/\r\n  pagespeed RewriteLevel CoreFilters;\r\n  pagespeed EnableFilters collapse_whitespace,remove_comments;\r\n\r\n  # make_google_analytics_async\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-make-google-analytics-async\r\n  pagespeed EnableFilters make_google_analytics_async;\r\n\r\n  # make_show_ads_async\r\n  # https://developers.google.com/speed/pagespeed/module/filter-make-show-ads-async\r\n  pagespeed EnableFilters make_show_ads_async;\r\n\r\n  # responsive_images, responsive_images_zoom\r\n  # https://developers.google.com/speed/pagespeed/module/filter-image-responsive\r\n  pagespeed EnableFilters responsive_images;\r\n  pagespeed EnableFilters responsive_images_zoom;\r\n\r\n  # convert_to_webp_animated\r\n  # https://developers.google.com/speed/pagespeed/module/filter-image-optimize#convert_to_webp_animated\r\n  pagespeed EnableFilters convert_to_webp_animated;\r\n\r\n  # inline_google_font_css\r\n  # https://developers.google.com/speed/pagespeed/module/filter-css-inline-google-fonts\r\n  pagespeed EnableFilters inline_google_font_css;\r\n  # require FetchHttps if using https site\r\n   pagespeed FetchHttps enable;\r\n\r\n  # inline_css\r\n  # https://developers.google.com/speed/pagespeed/module/filter-css-inline\r\n#   pagespeed EnableFilters inline_css;\r\n#   pagespeed CssInlineMaxBytes 2048;\r\n\r\n  # prioritize_critical_css\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-prioritize-critical-css\r\n   pagespeed EnableFilters prioritize_critical_css;\r\n\r\n  # move_css_to_head\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-to-head\r\n  pagespeed EnableFilters move_css_to_head;\r\n\r\n  # move_css_above_scripts\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-above-scripts\r\n  pagespeed EnableFilters move_css_above_scripts;\r\n\r\n  # combine_css\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-combine\r\n  pagespeed EnableFilters combine_css;\r\n\r\n   # Uncomment this if you want to prevent mod_pagespeed from combining files\r\n   # (e.g. CSS files) across paths\r\n   #\r\n#  pagespeed CombineAcrossPaths off;\r\n\r\n  # combine_javascript\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-combine\r\n  pagespeed EnableFilters combine_javascript;\r\n  pagespeed MaxCombinedJsBytes 122900;\r\n\r\n  # extend_cache\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-cache-extend\r\n  pagespeed EnableFilters extend_cache;\r\n\r\n  # rewrite_css\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-css-rewrite\r\n  pagespeed EnableFilters rewrite_css;\r\n\r\n  # rewrite_javascript\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-js-minify\r\n  pagespeed EnableFilters rewrite_javascript;\r\n\r\n  # inline_preview_images\r\n  # https://developers.google.com/speed/pagespeed/module/filter-inline-preview-images\r\n  pagespeed EnableFilters inline_preview_images;\r\n\r\n  # lazyload_images\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-lazyload-images\r\n  pagespeed EnableFilters lazyload_images;\r\n\r\n  # rewrite_images\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-optimize\r\n  pagespeed EnableFilters rewrite_images;\r\n  pagespeed EnableFilters inline_images;\r\n  pagespeed EnableFilters recompress_images;\r\n  pagespeed EnableFilters jpeg_subsampling;\r\n  pagespeed EnableFilters convert_png_to_jpeg;\r\n  pagespeed EnableFilters resize_images;\r\n  pagespeed EnableFilters convert_jpeg_to_webp;\r\n  pagespeed EnableFilters convert_to_webp_lossless;\r\n#   pagespeed EnableFilters insert_image_dimensions;\r\n#   pagespeed DisableFilters rewrite_images;\r\n#   pagespeed DisableFilters recompress_images;\r\n#   pagespeed DisableFilters convert_png_to_jpeg;\r\n#   pagespeed DisableFilters extend_cache_images;\r\n#   pagespeed EnableFilters convert_png_to_jpeg;\r\n#  pagespeed EnableFilters convert_jpeg_to_webp;\r\n#  pagespeed EnableFilters convert_to_webp_lossless;\r\n\r\n  # sprite_images\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-image-sprite\r\n pagespeed EnableFilters rewrite_css,sprite_images;\r\n\r\n  # insert_dns_prefetch\r\n  # https://developers.google.com/speed/docs/mod_pagespeed/filter-insert-dns-prefetch\r\n  pagespeed EnableFilters insert_dns_prefetch;\r\n\r\n  # InPlaceResourceOptimization\r\n  # https://developers.google.com/speed/pagespeed/module/system#ipro\r\n  # Enabled by default as of 1.9.32.1\r\n  pagespeed InPlaceResourceOptimization off;\r\n#######################################################\r\n````\r\nNow even after having all these filters in my config I still don't know why the js is not combining, why css is not combining and why pagespeed is not showing it's magic on the images.\r\n\r\nI've shared all these things with you guys so that any of you can take a look and let me know what is wrong with my config that is making all these issues. Also if you guys think I should add any more filters in my config to make my site faster.\r\n\r\nThanks in advance."}}