Treehouse: Grow your CSS skills. Land your dream job.

.htaccess clarification please

  • # July 27, 2012 at 11:25 am

    I just added some caching with mod_expires like so:

    ExpiresActive On
    ExpiresDefault A29030400
    ExpiresByType text/html A86400
    ExpiresByType text/css A86400

    My question is this.
    Is everything going to be cached for 12 months with exception of html and css (24 hours)?
    Or do I have to specify expire by type on each seperate line for types like img, png, pdf etc. and add time intervals?

    # July 27, 2012 at 12:08 pm

    setting ETags and chaching stuff works only for what you define

    # July 27, 2012 at 12:22 pm

    thanx krysak

    btw, you from cz?

    # July 27, 2012 at 1:12 pm

    EN: Yes, I am from Czech Republic.
    CZ: Ano, jsem z České Republiky.

    # July 27, 2012 at 1:22 pm

    this is wat I have in .htaccess
    from here …

    # Expires headers (for better cache control)

    # these are pretty far-future expires headers
    # they assume you control versioning with cachebusting query params like
    # July 27, 2012 at 2:17 pm

    I am from Chech also. (Trinec)
    Left in 79. Emigrated to USA after spending 14 months in Italy.

    Thanx for the .htaccess info

    # July 27, 2012 at 7:07 pm

    nice to see a fellow countryman here

    the .htaccess reminds me some general info which may or may not know

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.