Plugin Directory

Changeset 3623452


Ignore:
Timestamp:
07/26/2026 01:07:49 PM (3 months ago)
Author:
nigro.simone
Message:

Update to version 1.0.15 from GitHub

Location:
speed-up-browser-caching
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • speed-up-browser-caching/tags/1.0.15/htaccess.txt

    r1542210 r3623452  
    1 # Apache Server Configs v2.14.0 | MIT License / https://github.com/h5bp/server-configs-apache
    2 # Copyright (c) HTML5 Boilerplate / https://github.com/h5bp/html5-boilerplate
    31# Speed Up - Browser Caching | GPLv2 / http://wordpress.org/plugins/speed-up-browser-caching/
     2#
     3# Basato su Apache Server Configs v2.14.0 | MIT License
     4# Copyright (c) HTML5 Boilerplate / https://github.com/h5bp/server-configs-apache
     5#
     6# Modifiche rispetto all'originale:
     7#   - tipi MIME dei font aggiornati a RFC 8081 (font/ttf, font/otf, font/woff2)
     8#   - javascript dichiarato come text/javascript, per RFC 9239
     9#   - Cache-Control immutable sugli asset con versione nell'URL
    410<IfModule mod_mime.c>
    5     AddType application/javascript                      js
     11    AddType text/javascript                             js
    612    AddType audio/mp4                                   f4a f4b m4a
    713    AddType audio/ogg                                   oga ogg opus
    … …  
    1420    AddType video/x-flv                                 flv
    1521    AddType image/x-icon                                cur ico
    16     AddType application/font-woff                       woff
    17     AddType application/font-woff2                      woff2
     22    AddType font/woff                                   woff
     23    AddType font/woff2                                  woff2
    1824    AddType application/vnd.ms-fontobject               eot
    19     AddType application/x-font-ttf                      ttc ttf
    20     AddType font/opentype                               otf
     25    AddType font/ttf                                    ttf
     26    AddType font/collection                             ttc
     27    AddType font/otf                                    otf
    2128</IfModule>
    2229<IfModule mod_mime.c>
    … …  
    3744        AddOutputFilterByType DEFLATE "font/eot"
    3845        AddOutputFilterByType DEFLATE "font/opentype"
     46        AddOutputFilterByType DEFLATE "font/ttf"
     47        AddOutputFilterByType DEFLATE "font/otf"
     48        AddOutputFilterByType DEFLATE "font/collection"
    3949        AddOutputFilterByType DEFLATE "image/bmp"
    4050        AddOutputFilterByType DEFLATE "image/svg+xml"
    … …  
    7686    ExpiresByType font/woff                             "access plus 1 month"
    7787    ExpiresByType application/font-woff2                "access plus 1 month"
     88
     89    # Tipi RFC 8081, standard dal 2017. I nomi precedenti restano qui sopra:
     90    # se il tipo di un file arriva da un'altra configurazione del server, deve
     91    # continuare a scadere come prima.
     92    ExpiresByType font/ttf                              "access plus 1 month"
     93    ExpiresByType font/otf                              "access plus 1 month"
     94    ExpiresByType font/collection                       "access plus 1 month"
     95    ExpiresByType font/woff2                            "access plus 1 month"
    7896</IfModule>
    7997<IfModule mod_headers.c>
    8098    Header unset ETag
    8199</IfModule>
     100
     101# Cache-Control: immutable dice al browser di non rivalidare nemmeno al ricarico
     102# della pagina. Applicarlo a tutto sarebbe rischioso: un file modificato senza
     103# cambiare URL resterebbe quello vecchio per un anno.
     104#
     105# Viene quindi applicato solo agli asset con "ver=" nella query string, che e'
     106# esattamente il caso di cio' che WordPress accoda: l'URL cambia quando cambia il
     107# contenuto, quindi non rivalidare non costa nulla.
     108<IfModule mod_setenvif.c>
     109    SetEnvIf Query_String "(^|&)ver=" SPEEDUP_VERSIONED_ASSET
     110</IfModule>
     111
     112<IfModule mod_headers.c>
     113    Header set Cache-Control "public, max-age=31536000, immutable" env=SPEEDUP_VERSIONED_ASSET
     114</IfModule>
     115
    82116FileETag None
  • speed-up-browser-caching/tags/1.0.15/readme.txt

    r3623333 r3623452  
    66Requires PHP: 7.0
    77Tested up to: 7.0
    8 Stable tag: 1.0.14
     8Stable tag: 1.0.15
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2424
    2525== Changelog ==
     26
     27= 1.0.15 =
     28* Update the font MIME types to RFC 8081 and declare JavaScript as text/javascript per RFC 9239
     29* Add Cache-Control immutable to assets carrying a version in the URL, so browsers stop revalidating them on reload
    2630
    2731= 1.0.14 =
  • speed-up-browser-caching/tags/1.0.15/speed-up-browser-caching.php

    r3623333 r3623452  
    44Plugin URI: http://wordpress.org/plugins/speed-up-browser-caching/
    55Description: Help browser to cache a local copy of static files and improve page load times.
    6 Version: 1.0.14
     6Version: 1.0.15
    77Author: Simone Nigro
    88Author URI: https://profiles.wordpress.org/nigrosimone
  • speed-up-browser-caching/trunk/htaccess.txt

    r1542210 r3623452  
    1 # Apache Server Configs v2.14.0 | MIT License / https://github.com/h5bp/server-configs-apache
    2 # Copyright (c) HTML5 Boilerplate / https://github.com/h5bp/html5-boilerplate
    31# Speed Up - Browser Caching | GPLv2 / http://wordpress.org/plugins/speed-up-browser-caching/
     2#
     3# Basato su Apache Server Configs v2.14.0 | MIT License
     4# Copyright (c) HTML5 Boilerplate / https://github.com/h5bp/server-configs-apache
     5#
     6# Modifiche rispetto all'originale:
     7#   - tipi MIME dei font aggiornati a RFC 8081 (font/ttf, font/otf, font/woff2)
     8#   - javascript dichiarato come text/javascript, per RFC 9239
     9#   - Cache-Control immutable sugli asset con versione nell'URL
    410<IfModule mod_mime.c>
    5     AddType application/javascript                      js
     11    AddType text/javascript                             js
    612    AddType audio/mp4                                   f4a f4b m4a
    713    AddType audio/ogg                                   oga ogg opus
    … …  
    1420    AddType video/x-flv                                 flv
    1521    AddType image/x-icon                                cur ico
    16     AddType application/font-woff                       woff
    17     AddType application/font-woff2                      woff2
     22    AddType font/woff                                   woff
     23    AddType font/woff2                                  woff2
    1824    AddType application/vnd.ms-fontobject               eot
    19     AddType application/x-font-ttf                      ttc ttf
    20     AddType font/opentype                               otf
     25    AddType font/ttf                                    ttf
     26    AddType font/collection                             ttc
     27    AddType font/otf                                    otf
    2128</IfModule>
    2229<IfModule mod_mime.c>
    … …  
    3744        AddOutputFilterByType DEFLATE "font/eot"
    3845        AddOutputFilterByType DEFLATE "font/opentype"
     46        AddOutputFilterByType DEFLATE "font/ttf"
     47        AddOutputFilterByType DEFLATE "font/otf"
     48        AddOutputFilterByType DEFLATE "font/collection"
    3949        AddOutputFilterByType DEFLATE "image/bmp"
    4050        AddOutputFilterByType DEFLATE "image/svg+xml"
    … …  
    7686    ExpiresByType font/woff                             "access plus 1 month"
    7787    ExpiresByType application/font-woff2                "access plus 1 month"
     88
     89    # Tipi RFC 8081, standard dal 2017. I nomi precedenti restano qui sopra:
     90    # se il tipo di un file arriva da un'altra configurazione del server, deve
     91    # continuare a scadere come prima.
     92    ExpiresByType font/ttf                              "access plus 1 month"
     93    ExpiresByType font/otf                              "access plus 1 month"
     94    ExpiresByType font/collection                       "access plus 1 month"
     95    ExpiresByType font/woff2                            "access plus 1 month"
    7896</IfModule>
    7997<IfModule mod_headers.c>
    8098    Header unset ETag
    8199</IfModule>
     100
     101# Cache-Control: immutable dice al browser di non rivalidare nemmeno al ricarico
     102# della pagina. Applicarlo a tutto sarebbe rischioso: un file modificato senza
     103# cambiare URL resterebbe quello vecchio per un anno.
     104#
     105# Viene quindi applicato solo agli asset con "ver=" nella query string, che e'
     106# esattamente il caso di cio' che WordPress accoda: l'URL cambia quando cambia il
     107# contenuto, quindi non rivalidare non costa nulla.
     108<IfModule mod_setenvif.c>
     109    SetEnvIf Query_String "(^|&)ver=" SPEEDUP_VERSIONED_ASSET
     110</IfModule>
     111
     112<IfModule mod_headers.c>
     113    Header set Cache-Control "public, max-age=31536000, immutable" env=SPEEDUP_VERSIONED_ASSET
     114</IfModule>
     115
    82116FileETag None
  • speed-up-browser-caching/trunk/readme.txt

    r3623333 r3623452  
    66Requires PHP: 7.0
    77Tested up to: 7.0
    8 Stable tag: 1.0.14
     8Stable tag: 1.0.15
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    2424
    2525== Changelog ==
     26
     27= 1.0.15 =
     28* Update the font MIME types to RFC 8081 and declare JavaScript as text/javascript per RFC 9239
     29* Add Cache-Control immutable to assets carrying a version in the URL, so browsers stop revalidating them on reload
    2630
    2731= 1.0.14 =
  • speed-up-browser-caching/trunk/speed-up-browser-caching.php

    r3623333 r3623452  
    44Plugin URI: http://wordpress.org/plugins/speed-up-browser-caching/
    55Description: Help browser to cache a local copy of static files and improve page load times.
    6 Version: 1.0.14
     6Version: 1.0.15
    77Author: Simone Nigro
    88Author URI: https://profiles.wordpress.org/nigrosimone
Note: See TracChangeset for help on using the changeset viewer.