thanks a lot... @LonginosI will try your last suggestions...still the problem remains!you said mod_pagespeed sets 1 year to max-age, first I wanna know if I can set my custom cache-ttl for specific request in pagespeed (inside nginx.conf or with url parameter string)?I've checked cache-control from origin server (is apache2 php) which is empty (I don't see cache-control header)!This is like an initial test to decide whether to switch on mod_pagespeed or not!so in this step, ssl certification is not important yet!I set forbidden for many of filters because I wanna make a simple test for webp conversion!now I enable all of them:```worker_processes auto;error_log logs/error.log;pid logs/nginx.pid;error_log logs/debug.log debug;#error_log logs/crit.log crit;error_log /dev/null crit;
worker_rlimit_nofile 10000;#1048576 #->best value is equal to worker_connections
events {
worker_connections 10000; #1048576 #it must be multiples of 2
multi_accept on; #accept as many connections as possible, may flood worker connections if set too low
use epoll; #optimized to serve many clients with each thread, essential for linux
#accept_mutex on;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
gzip on;
keepalive_timeout 65;
pagespeed UsePerVhostStatistics on;
pagespeed LowercaseHtmlNames on;
pagespeed MessageBufferSize 100000;
server {
listen 3330;
proxy_http_version 1.1;
pagespeed on; # or standby or unplugged
pagespeed FileCachePath /tmp/ngx_pagespeed_cache; #"/var/cache/ngx_pagespeed/"
pagespeed StatisticsPath /tmp/ngx_pagespeed_statistics; pagespeed EnableFilters add_head; #add_head Adds a <head> element to the document if not already present. pagespeed EnableFilters responsive_images; #responsive_images Makes images responsive by adding srcset with images optimized for various resolutions. pagespeed EnableFilters combine_heads; #combine_heads Combines multiple <head> elements found in document into one. pagespeed EnableFilters inline_import_to_link; #inline_import_to_link Inlines <style> tags comprising only CSS @imports by converting them to equivalent <link> tags. pagespeed EnableFilters outline_css; #outline_css Externalize large blocks of CSS into a cacheable file. pagespeed EnableFilters outline_javascript; #outline_javascript Externalize large blocks of JS into a cacheable file. pagespeed EnableFilters move_css_above_scripts; #move_css_above_scripts Moves CSS elements above <script> tags. pagespeed EnableFilters move_css_to_head; #move_css_to_head Moves CSS elements into the <head>. pagespeed EnableFilters combine_css; #combine_css Combines multiple CSS elements into one. pagespeed EnableFilters rewrite_css; #rewrite_css Rewrites CSS files to remove excess whitespace and comments, and, if enabled, rewrite or cache-extend images referenced in CSS files. In OptimizeForBandwidth mode, the minification occurs in-place without changing URLs. pagespeed EnableFilters fallback_rewrite_css_urls; #fallback_rewrite_css_urls Rewrites resources referenced in any CSS file that cannot otherwise be parsed and minified. pagespeed EnableFilters rewrite_style_attributes; #rewrite_style_attributes Rewrite the CSS in style attributes by applying the configured rewrite_css filter to it. pagespeed EnableFilters rewrite_style_attributes_with_url; #rewrite_style_attributes_with_url Rewrite the CSS in style attributes if it contains the text 'url(' by applying the configured rewrite_css filter to it pagespeed EnableFilters flatten_css_imports; #flatten_css_imports Inline CSS by flattening all @import rules. pagespeed EnableFilters prioritize_critical_css; #prioritize_critical_css Replace CSS tags with inline versions that include only the CSS used by the page. pagespeed EnableFilters make_google_analytics_async; #make_google_analytics_async Convert synchronous use of Google Analytics API to asynchronous pagespeed EnableFilters make_show_ads_async; #make_show_ads_async Convert synchronous use of Google AdSense API to asynchronous pagespeed EnableFilters rewrite_javascript; #rewrite_javascript Rewrites JavaScript files to remove excess whitespace and comments. In OptimizeForBandwidth mode, the minification occurs in-place without changing URLs. pagespeed EnableFilters rewrite_javascript_external; #rewrite_javascript_external Implied by rewrite_javascript. Rewrites JavaScript external files to remove excess whitespace and comments. In OptimizeForBandwidth mode, the minification occurs in-place without changing URLs. pagespeed EnableFilters rewrite_javascript_inline; #rewrite_javascript_inline Implied by rewrite_javascript. Rewrites inline JavaScript blocks to remove excess whitespace and comments. pagespeed EnableFilters include_js_source_maps; #include_js_source_maps Adds source maps to rewritten JavaScript files. pagespeed EnableFilters combine_javascript; #combine_javascript Combines multiple script elements into one. pagespeed EnableFilters canonicalize_javascript_libraries; #canonicalize_javascript_libraries Redirects JavaScript libraries to a JavaScript hosting service. pagespeed EnableFilters inline_css; #inline_css Inlines small CSS files into the HTML document. pagespeed EnableFilters inline_google_font_css; #inline_google_font_css Inlines small CSS files used by fonts.googleapis.com
into the HTML document. pagespeed EnableFilters inline_javascript; #inline_javascript Inlines small JS files into the HTML document. pagespeed EnableFilters local_storage_cache; #local_storage_cache Cache inlined resources in HTML5 local storage. pagespeed EnableFilters insert_ga; #insert_ga Adds the Google Analytics snippet to each HTML page.
pagespeed EnableFilters rewrite_images; #rewrite_images Optimizes images, re-encoding them, removing excess pixels, and inlining small images. In OptimizeForBandwidth mode, the minification occurs in-place without changing URLs.
pagespeed EnableFilters convert_jpeg_to_progressive; #convert_jpeg_to_progressive Converts larger jpegs to progressive format. Implied by recompress images.
pagespeed EnableFilters convert_png_to_jpeg; #convert_png_to_jpeg Converts gif and png images into jpegs if they appear to be less sensitive to compression artifacts and lack alpha transparency. Implied by recompress images.
pagespeed EnableFilters convert_jpeg_to_webp; #convert_jpeg_to_webp Producess lossy webp rather than jpeg images for browsers that support webp. Implied by recompress images.
pagespeed EnableFilters convert_to_webp_animated; #convert_to_webp_animated Replaces animated gif images with webp images on browsers that support the format.
pagespeed EnableFilters convert_to_webp_lossless; #convert_to_webp_lossless Implied by rewrite_images. Replaces png and non-animated gif images with webp images on browsers that support the format.
pagespeed EnableFilters insert_image_dimensions; #insert_image_dimensions Adds width and height attributes to <img> tags that lack them.
pagespeed EnableFilters inline_images; #inline_images Implied by rewrite_images. Replaces small images by data: urls.
pagespeed EnableFilters recompress_images; #recompress_images Implied by rewrite_images. Recompresses images, removing excess metadata and transforming gifs into pngs.
pagespeed EnableFilters recompress_jpeg; #recompress_jpeg Implied by recompress_images. Recompresses jpegs, removing excess metadata.
pagespeed EnableFilters recompress_png; #recompress_png Implied by recompress_images. Recompresses pngs, removing excess metadata.
pagespeed EnableFilters recompress_webp; #recompress_webp Implied by recompress_images. Recompresses webps, removing excess metadata.
pagespeed EnableFilters convert_gif_to_png; #convert_gif_to_png Implied by recompress_images. Optimizes gifs to pngs.
pagespeed EnableFilters strip_image_color_profile; #strip_image_color_profile Implied by recompress_images. Strips color profile info from images.
pagespeed EnableFilters strip_image_meta_data; #strip_image_meta_data mplied by recompress_images. Strips EXIF meta data from images.
#pagespeed EnableFilters jpeg_sampling; #jpeg_sampling Implied by recompress_images. Reduces the color sampling of jpeg images to 4:2:0.
pagespeed EnableFilters resize_images; #resize_images Implied by rewrite_images. Resizes images when the corresponding <img> tag specifies a smaller width and height.
pagespeed EnableFilters resize_rendered_image_dimensions; #resize_rendered_image_dimensions Implied by rewrite_images. Resizes an image when the rendered dimensions of the image are smaller than the actual image. pagespeed EnableFilters inline_preview_images; #inline_preview_images Uses inlined low-quality images as placeholders which will be replaced with original images once the web page is loaded. pagespeed EnableFilters resize_mobile_images; #resize_mobile_images Works just like inline_preview_images, but uses smaller placeholder images and only serves them to mobile browsers.
pagespeed EnableFilters remove_comments; #remove_comments Removes comments in HTML files (but not in inline JavaScript or CSS).
pagespeed EnableFilters collapse_whitespace; #collapse_whitespace Removes excess whitespace in HTML files (avoiding <pre>, <script>, <style>, and <textarea>).
pagespeed EnableFilters elide_attributes; #elide_attributes Removes attributes which are not significant according to the HTML spec.
pagespeed EnableFilters extend_cache; #extend_cache Extends cache lifetime of CSS, JS, and image resources that have not otherwise been optimized, by signing URLs with a content hash. pagespeed EnableFilters extend_cache_css; #extend_cache_css Implied by extend_cache. Extends cache lifetime of otherwise unoptimized CSS resources by signing URLs with a content hash. pagespeed EnableFilters extend_cache_images; #extend_cache_images Implied by extend_cache. Extends cache lifetime of otherwise unoptimized images by signing URLs with a content hash. pagespeed EnableFilters extend_cache_scripts; #extend_cache_scripts Implied by extend_cache. Extends cache lifetime of otherwise unoptimized scripts by signing URLs with a content hash. pagespeed EnableFilters extend_cache_pdfs; #extend_cache_pdfs Extends cache lifetime of PDFs by signing URLs with a content hash. pagespeed EnableFilters sprite_images; #sprite_images Combine background images in CSS files into one sprite. pagespeed EnableFilters rewrite_domains; #rewrite_domains Rewrites the domains of resources not otherwise touched by PageSpeed, based on MapRewriteDomain and ShardDomain settings in the config file. pagespeed EnableFilters trim_urls; #trim_urls Shortens URLs by making them relative to the base URL. pagespeed EnableFilters pedantic; #pedantic Add default types for <script> and <style> tags if the type attribute is not present and the page is not HTML5. The purpose of this filter is to help ensure that PageSpeed does not break HTML4 validation. pagespeed EnableFilters remove_quotes; #remove_quotes Removes quotes around HTML attributes that are not lexically required. pagespeed EnableFilters add_instrumentation; #add_instrumentation Adds JavaScript to page to measure latency and send back to the server. pagespeed EnableFilters convert_meta_tags; #convert_meta_tags Adds a response header for each meta tag with an http-equiv attribute. pagespeed EnableFilters defer_javascript; #defer_javascript Defers the execution of JavaScript in HTML until page load complete. pagespeed EnableFilters dedup_inlined_images; #dedup_inlined_images Replaces repeated inlined images with JavaScript that loads the image from the first occurence of the image. pagespeed EnableFilters lazyload_images; #lazyload_images Loads images when they become visible in the client viewport. pagespeed EnableFilters insert_dns_prefetch; #insert_dns_prefetch Inserts <link rel="dns-prefetch" href="// www.example.com
"> tags to reduce DNS resolution time. pagespeed EnableFilters hint_preload_subresources; #hint_preload_subresources Inserts Link:</example.css>; rel=preload headers to permit earlier fetching of important resources. pagespeed EnableFilters in_place_optimize_for_browser; #in_place_optimize_for_browser Perform browser-dependent in-place resource optimizations. pagespeed EnableFilters responsive_images_zoom; #responsive_images_zoom
pagespeed EnableFilters jpeg_subsampling; #This filter reduces the color sampling of jpeg images to 4:2:0. Human vision is much more sensitive to changes in brightness than changes in hue or saturation, and 4:2:0 color sampling allows us to keep brightness data while reducing the amount of hue and saturation data by 3/4. This can significantly reduce the image size while having only a small effect on perception.
location / {
proxy_pass http://ip:80
; } }}```as you said, I added +debug url parameter string and this is debug log:```<!--mod_pagespeed onFilters:ah Add Headai Add Instrumentationij Canonicalize Javascript library URLscw Collapse Whitespacecc Combine Cssch Combine Headsjc Combine Javascriptgp Convert Gif to Pngjp Convert Jpeg to Progressivejw Convert Jpeg To Webpmc Convert Meta Tagspj Convert Png to Jpegwa Convert animated images to WebPws When converting images to WebP, prefer lossless conversionsdb Debugdd Dedup Inlined Imagesdj Defer Javascriptdi Delay Imagesea Elide Attributesec Cache Extend Cssei Cache Extend Imagesep Cache Extend PDFses Cache Extend Scriptsfc Fallback Rewrite Cssif Flatten CSS Importshpsr Hint Preload of Subresourceshw Flushes htmlsm Include JS Source Mapsci Inline Cssgf Inline Google Font CSSii Inline Imagesil Inline @import to Linkji Inline Javascriptio In-place optimize for browseridp Insert DNS Prefetchig Insert Google Analyticsid Insert Image Dimensionsjs Jpeg Subsamplingll Lazyload Imagestu Left Trim Urlsls Local Storage Cachega Make Google Analytics Asyncgaa Convert showads.js use to async adsbygoogle.jscj Move Css Above Scriptscm Move Css To Headco Outline Cssjo Outline Javascriptpc Add pedantic typespr Prioritize Critical Cssrj Recompress Jpegrp Recompress Pngrw Recompress Webprc Remove Commentsrq Remove Quotesri Resize Imagesrm Resize Mobile Imagesir Resize to Rendered Image Dimensionsrx Responsive Imagesrz Responsive Images Zoomcf Rewrite Cssrd Rewrite Domainsjm Rewrite External Javascriptjj Rewrite Inline Javascriptcs Rewrite Style Attributescu Rewrite Style Attributes With Urlis Sprite Imagescp Strip Image Color Profilesmd Strip Image Meta DataOptions:AvoidRenamingIntrospectiveJavascript (aris) TrueEnableRewriting (e) 1FileCacheInodeLimit (afcl) 500000LowercaseHtmlNames (lh) TrueRewriteLevel (l) Core Filters#NumFlushes 0#EndDocument after 361us#Total Parse duration 238us#Total Render duration 28337us#Total Idle duration 123usNo critical images detected.The following filters were disabled for this request: DelayImages Lazyload Images-->```All The Best,Hadi