Your site has been switched to Mobile First Indexing


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 8  
TURNED OFF FOR NOW - BREAKS THINGS

OK... testing this non-default mod_pagespeed config now:

Code:
    # Explicitly enables specific filters. This is useful in
    # conjuction with ModPagespeedRewriteLevel. For instance, filters
    # not included in the CoreFilters may be enabled using this
    # directive. This directive contains a comma-separated list of
    # filter names, and can be repeated.
    #
    ModPagespeedEnableFilters rewrite_javascript,rewrite_css
    ModPagespeedEnableFilters collapse_whitespace,elide_attributes

# 9  
Now I recall some of the problems I used to have with mod_pagespeed......

mod_pagespeed give a tiny increase in page speed with the big cost of caching and when we make a change on the site and try to clear the cache, the cache does not clear propertly or correctly
and it is very hard to work on the site, debug things, etc. due to the caching of all this code and the problems trying to clear the various caches.

So, I turned it off (again) for now.

I tried to clear the cache and it will not clear easily but again, it may be because we have to clear the cache on both the server side and the client side; all of which is too much work.

As I always try to explain to people over the years; all the "optimizations" come at a "cost" and the major cost for mod_pagespeed is a cache of a written pages (HTML, CSS, Javascript) which can be very difficult to manage if you are making any changes to the code or debugging something; and I started making changes to the code based on the W3C validator; but it's hard to work on this with mod_pagespeed caching, rewriting code, etc.

Anyway, its off again ... because the pages load fast already and mod_pagespeed does not really help that much and has very little or nothing to do with the issue I posted about, which is:

Your site has been switched to Mobile First Indexing by Google.

Cheers!
This User Gave Thanks to Neo For This Post:
# 10  
Well, not to give up ... turned it back on again and trying:

Code:
    # Explicitly enables specific filters. This is useful in
    # conjuction with ModPagespeedRewriteLevel. For instance, filters
    # not included in the CoreFilters may be enabled using this
    # directive. This directive contains a comma-separated list of
    # filter names, and can be repeated.
    #
    #ModPagespeedEnableFilters rewrite_javascript,rewrite_css
    ModPagespeedEnableFilters collapse_whitespace,elide_attributes

Will work on clearing the cache later Smilie
# 11  
OK... instead of following the mod_pagespeed instructions for deleting the cache which seems not to work (at least for me), I just did this:


Code:
server:/etc/apache2/mods-enabled# rm -rf /var/cache/mod_pagespeed
server:/etc/apache2/mods-enabled# mkdir /var/cache/mod_pagespeed
server:/etc/apache2/mods-enabled# chown www-data.www-data  /var/cache/mod_pagespeed
server:/etc/apache2/mods-enabled# service apache2 restart

# 12  
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:
# 13  
Quote:
Originally Posted by Akshay Hegde
This is what I use, here is conf, I use query parameters whenever I change script/css, pagespeed re-creates cache
Yeah, that's what I do generally for Javascript and CSS. It's a bit more tricky when the change is to the HTML in a document, for me at least.

I will replace our pagespeed.conf file with the snippet you provided above and see how that works.

Do you mind to send me your entire pagespeed.conf file?

Thanks!
# 14  
Ok I am attaching, many parameters are commented thats why I posted only parameters which I override at the end.
This User Gave Thanks to Akshay Hegde For This Post:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #668
Difficulty: Medium
IEEE 802.11 is part of the IEEE 802 set of LAN protocols, and specifies the set of media access control (MAC) and physical layer (PHY) protocols for implementing virtual local area network (VLAN) Wi-Fi computer communication in various frequencies.
True or False?

8 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

Featured Tech Videos