Sponsored Content
The Lounge What is on Your Mind? Your site has been switched to Mobile First Indexing Post 303038707 by Akshay Hegde on Thursday 12th of September 2019 03:09:25 AM
Old 09-12-2019
This is what I use, here is conf, I use query parameters whenever I change script/css, pagespeed re-creates cache

Example : somescript.js?v=20190912124147

Code:
ModPagespeedHonorCsp on
ModPagespeedForceCaching on
ModPagespeedRewriteLevel PassThrough

# limits
ModPagespeedFileCacheCleanIntervalMs 3600000
ModPagespeedFileCacheSizeKb 10240000
ModPagespeedFileCacheInodeLimit      500000
ModPagespeedLRUCacheKbPerProcess   2048
ModPagespeedLRUCacheByteLimit      32384

# failure fix
ModPagespeedRewriteUncacheableResources on

# disable filter via querystring
ModPagespeedForbidAllDisabledFilters true

# segment
ModPagespeedMaxSegmentLength 1800

# for css
ModPagespeedEnableFilters extend_cache_css
ModPagespeedMaxCombinedCssBytes -1
ModPagespeedEnableFilters move_css_to_head,move_css_above_scripts,rewrite_css,combine_css,outline_css

# for javascript
ModPagespeedEnableFilters extend_cache_scripts
ModPagespeedEnableFilters rewrite_javascript,rewrite_javascript_external,combine_javascript,outline_javascript
ModPagespeedJsOutlineMinBytes 1
ModPagespeedMaxCombinedJsBytes -1

#  fonts & others
ModPagespeedEnableFilters inline_google_font_css
ModPagespeedFetchHttps enable
ModPagespeedGoogleFontCssInlineMaxBytes -1
ModPagespeedCriticalImagesBeaconEnabled false

# html specific
ModPagespeedEnableFilters collapse_whitespace,pedantic,remove_comments

# image related
# default 8 images will be optimized
# -1 for unlimited
ModPagespeedImageMaxRewritesAtOnce -1

# Image optimize
ModPagespeedEnableFilters extend_cache_images
ModPagespeedEnableFilters convert_jpeg_to_progressive
ModPagespeedEnableFilters convert_png_to_jpeg

# for animated gif webp is not supporing everywhere
ModPagespeedEnableFilters  convert_jpeg_to_webp,convert_to_webp_lossless,convert_to_webp_animated

# at then end recompress all
ModPagespeedEnableFilters strip_image_meta_data,recompress_jpeg,recompress_png,recompress_webp

# dns prefetch in head
ModPagespeedEnableFilters insert_dns_prefetch

This User Gave Thanks to Akshay Hegde For This Post:
 

8 More Discussions You Might Find Interesting

1. IP Networking

port access to site to site VPN

Setup a site to site VPN between two cisco routers. One of the site locations is unable to access ports such as https://example.com:9001 How do I let them go into port 9001? They can ssh, ftp, telnet and everything else. Is this a VPN issue or ACL access issue? I put permit ip host... (0 Replies)
Discussion started by: photon
0 Replies

2. Shell Programming and Scripting

indexing a file

hello guys, I have a file like this: input.dat Push-to-talk No Coonection IP support Support for IP telephony Yes Built-in SIP stack Yes Support via software Yes Microsoft Support for Microsoft Exchange Yes UMA (5 Replies)
Discussion started by: Johanni
5 Replies

3. IP Networking

How to establish site to site vpn - Linux machine and cisco asa?

Hi, I am trying to establish vpn between my linux server and cisco asa at client side. I installed openswan on my cent os. Linux Server eth0 - 182.2.29.10 Gateway - 182.2.29.1 eth1 - 192.9.200.75 I have simple IPtables Like WAN="eth0" LAN="eth1" (0 Replies)
Discussion started by: ashokvpp
0 Replies

4. IP Networking

Does cisco 1921 router support site to site VPNs using IPSec?

Q: "Does Cisco 1921 router support,, act as an endpoint for, site to site VPNs using IPSec? If so, how many? " A: If you get the Cisco 1921/k9 with the security services bundle then it will have built in security features. Cisco, typically includes IP Sec tunnels I believe as part of that... (0 Replies)
Discussion started by: Ayaerlee
0 Replies

5. IP Networking

IPSec Openswan Site to Site VPN - Big Pain

Hi @all, I try to connect 2 LANs with IPSec/Openswan LAN 1: 192.168.0.0/24 LAN 2: 192.168.1.0/24 This is my Config: conn HomeVPN # # Left security gateway, subnet behind it, nexthop toward right. left=192.168.1.29 ... (1 Reply)
Discussion started by: bahnhasser83
1 Replies

6. IP Networking

Node switched itself from static to DHCP on reboot issue

I'm trying to figure out what circumstances would cause an Open Solaris 11.2 host to switch itself from a static to a DHCP ip address upon reboot. This has only happened once but is a cause for some concern as this machine will be part of a web server pool. Nothing has changed on the LAN that... (2 Replies)
Discussion started by: SmokeyJoe
2 Replies

7. What is on Your Mind?

New UNIX.COM Mobile Site Icons

Having given up for the time being with a very difficult game engine project to virtualizing cyberspace, am working on the forums again. Just updated a few icons on the mobile site. Explanations in the picture captions: https://www.unix.com/members/1-albums214-picture855.jpeg ... (1 Reply)
Discussion started by: Neo
1 Replies

8. What is on Your Mind?

Mobile Thanks Now Visible in Mobile

Hey, I have enable post thanks (viewing thanks, not yet giving thanks) in mobile: https://www.unix.com/members/1-albums214-picture1018.jpeg I plan to also add the button to "give thanks on mobile. In addition, I will change the formatting (color and justification) of this new mobile... (1 Reply)
Discussion started by: Neo
1 Replies
GIF2WEBP(1)						      General Commands Manual						       GIF2WEBP(1)

NAME
gif2webp - Convert a GIF image to WebP SYNOPSIS
gif2webp [options] input_file.gif -o output_file.webp DESCRIPTION
This manual page documents the gif2webp command. gif2webp converts a GIF image to a WebP image. OPTIONS
The basic options are: -o string Specify the name of the output WebP file. If omitted, gif2webp will perform conversion but only report statistics. -h, -help Usage information. -version Print the version number (as major.minor.revision) and exit. -lossy Encode the image using lossy compression. -q float Specify the compression factor for RGB channels between 0 and 100. The default is 75. In case of lossless compression (default), a small factor enables faster compression speed, but produces a larger file. Maximum com- pression is achieved by using a value of 100. In case of lossy compression (specified by the -lossy option), a small factor produces a smaller file with lower quality. Best qual- ity is achieved by using a value of 100. -m int Specify the compression method to use. This parameter controls the trade off between encoding speed and the compressed file size and quality. Possible values range from 0 to 6. Default value is 4. When higher values are used, the encoder will spend more time inspecting additional encoding possibilities and decide on the quality gain. Lower value can result is faster processing time at the expense of larger file size and lower compression quality. -f int For lossy encoding only (specified by the -lossy option). Specify the strength of the deblocking filter, between 0 (no filtering) and 100 (maximum filtering). A value of 0 will turn off any filtering. Higher value will increase the strength of the filtering process applied after decoding the picture. The higher the value the smoother the picture will appear. Typical values are usually in the range of 20 to 50. -v Print extra information. -quiet Do not print anything. BUGS
Please report all bugs to our issue tracker: http://code.google.com/p/webp/issues Patches welcome! See this page to get started: http://www.webmproject.org/code/contribute/submitting-patches/ EXAMPLES
gif2webp picture.gif -o picture.webp gif2webp -q 70 picture.gif -o picture.webp gif2webp -lossy -m 3 picture.gif -o picture_lossy.webp gif2webp -lossy -f 50 picture.gif -o picture.webp AUTHORS
gif2webp was written by the WebP team. The latest source tree is available at http://www.webmproject.org/code This manual page was written by Urvang Joshi <urvang@google.com>, for the Debian project (and may be used by others). SEE ALSO
dwebp(1), cwebp(1), webpmux(1). Please refer to http://developers.google.com/speed/webp/ for additional information. February 01, 2013 GIF2WEBP(1)
All times are GMT -4. The time now is 12:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy