Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kris1478

    (@kris1478)

    Thanks,
    I have checked the website, indeed I can download .js.br files (it means they exists), but header in dev tools also states path with .js only.
    I will replace style in one of my .css.br files to check if it is served or not. (seems that this is the only way to check).

    Thread Starter kris1478

    (@kris1478)

    In my case networks tab shows .css files
    Headers says content-encoding: br

    Could you give me an address of some website where AO provides .br via php-ext-brotli to see what it looks like in dev tools?

    Thanks
    Kris

    Thread Starter kris1478

    (@kris1478)

    I just uploaded .br files compressed manually(PeaZip provides nice brotli.exe tool for win) I have just uploaded css.br and js.br files to the cache folder, I have added .htacess rewriting rules as per below
    </IfModule>

    #serve brotli static
    <IfModule mod_headers.c>
    # Serve brotli compressed CSS and JS files if they exist
    # and the client accepts brotli.
    RewriteCond “%{HTTP:Accept-encoding}” “br”
    RewriteCond “%{REQUEST_FILENAME}\.br” “-s”
    RewriteRule “^(.*)\.(js|css)” “$1\.$2\.br” [QSA]

    # Serve correct content types, and prevent double compression.
    RewriteRule “\.css\.br$” “-” [T=text/css,E=no-brotli:1]
    RewriteRule “\.js\.br$” “-” [T=text/javascript,E=no-brotli:1]

    <FilesMatch “(\.js\.br|\.css\.br)$”>
    # Serve correct encoding type.
    Header append Content-Encoding br

    # Force proxies to cache brotli &
    # non-brotli css/js files separately.
    Header append Vary Accept-Encoding
    </FilesMatch>
    </IfModule>

    I did not notice any performance gain. What you think is it working? When AO makse .br files is it directly relates to .br files or it relies on the apache rewrite rules only?

    Thread Starter kris1478

    (@kris1478)

    In fact I updated recently, Avada to the newest version 7.2.1
    Thanks for help, If you have any idea to mitigate the problem I will appreciate it.

Viewing 4 replies - 1 through 4 (of 4 total)