Coder Social home page Coder Social logo

Comments (10)

paulirish avatar paulirish commented on May 30, 2024

http://googlecode.blogspot.com/2009/11/use-compression-to-make-web-faster.html

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

http://www.stevesouders.com/blog/2010/07/12/velocity-forcing-gzip-compression/
^ ^ ^ ^ ^

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

well....
http://wordpress.org/extend/plugins/force-gzip/ two problems.. its super PHP-y.. and its GPL.
is this possible with mostly apache config ?

from html5-boilerplate.

Garowetz avatar Garowetz commented on May 30, 2024

Looking over the code it looks like it's possible with js at the bottom of the index and setting the headers of the gzip.html via .htaccess

I'm fiddling with different methods now

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

The difficult trick is that the JS would have to be included only for that select audience.
I think apache includes could help.

Good luck!

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

Garowetz, have you identified a vector by which this could be done within the scope of standard boilerplate?

from html5-boilerplate.

Garowetz avatar Garowetz commented on May 30, 2024

Not yet, I have been testing different methods and seeing if there is something we can incorporate, right now it's all coming back to a php script along with .htaccess. Which isn't bad but we haven't added any server side code yet ... aside from the build script

Should I pursue?

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

From mathias byenens a bit ago

SetEnvIf HTTP_COOKIE "gzip" no-gzip dont-vary 

may be worth considering..

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

okay we finally got something i think we can move on:

http://calendar.perfplanet.com/2010/pushing-beyond-gzipping/

basically forces gzip for mangled headers. good enough for me.

from html5-boilerplate.

paulirish avatar paulirish commented on May 30, 2024

I'm very happy with our new gzip handling via that perfplanet post.. so i'm gonna close this finally. \o/

from html5-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.