Skip to content

Commit

Permalink
Merge pull request tomgco#7 from jhuckabee/fix_match_type_documentation
Browse files Browse the repository at this point in the history
Fix matchType references with contentTypeMatch
  • Loading branch information
tomgco committed Aug 11, 2011
2 parents 270ac48 + c50384c commit 8ba40c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In your express/connect server setup, use as follows:

Options:

- `matchType` - A regular expression tested against the Content-Type header to determine whether the response should be gzipped or not. The default value is `/text|javascript|json/`.
- `contentTypeMatch` - A regular expression tested against the Content-Type header to determine whether the response should be gzipped or not. The default value is `/text|javascript|json/`.
- `maxAge` - cache-control max-age directive, defaulting to 1 day
- `clientMaxAge` - browser cache-control max-age directive, defaulting to 1 week

Expand Down Expand Up @@ -55,4 +55,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion lib/staticGzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var gzippo = function(filename, charset, callback) {
*
* - `maxAge` cache-control max-age directive, defaulting to 1 day
* - `clientMaxAge` client cache-control max-age directive, defaulting to 1 week
* - `matchType` - A regular expression tested against the Content-Type header to determine whether the response
* - `contentTypeMatch` - A regular expression tested against the Content-Type header to determine whether the response
* should be gzipped or not. The default value is `/text|javascript|json/`.
*
* Examples:
Expand Down

0 comments on commit 8ba40c2

Please sign in to comment.