-
-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configs for files marked as
text/javascript
By default the configurations from this repository ensure that `.js` files are served with the `application/javascript` media type, compressed, and with far future expires headers. However, not all users¹ use all the configurations provided by this project, or, in some cases, the headers are overwritten from the level "beneath" Apache (e.g.: from `php`). For most of these cases we can't do anything about it. Nonetheless, there is one, quite common case (the media type is set to `text/javascript`) where we can help. Since the `text/javascript` media type is used² quite often, this commit makes Apache serve anything labeled with this media type, compressed and with far future expires headers. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ¹ #27 #41 ² Even the Google CND serves `.js` files with the `text/javascript` media type (e.g.: http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js)
- Loading branch information
Showing
3 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters