How do I link a gzipped version of a stylesheet?

1k Views Asked by At

This might be a duplicate question, but I couldn't find it.

  1. My apache server has mod_deflate enabled
  2. My server has the gzipped version of the css in my css folder

My question is, will my server automatically locate my gzipped file?

In other words, should my html look like:

<link rel="stylesheet" href="http://example.com/css/my_css.css"> And my server will automatically locate the gzipped css?

Or should it look like:

<link rel="stylesheet" href="http://example.com/css/my_css.css.gz">

Or do I do both?

0

There are 0 best solutions below