Commit a0c4e17
committed
Add configs for
Ensure that files marked as `text/x-cross-domain-policy` will:
* be served compressed¹
(they are `xml` files, therefore, they compress quite nicely)
* be served with future expires headers
(by default the cache time is set to one week as most of the
time the well-known location `/crossdomain.xml` will be used)
Notes:
* The configurations for the `text/x-cross-domain-policy`
media type. are added mainly due to its high usage³.
* The `text/x-cross-domain-policy` media type cannot be
accurately² set from a `.htaccess` file, so that part will
be left to the user.
* Since the policy files will usually have the `.xml`
extension, they will not be served with any of the `HTML`
document related headers.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
¹ http://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/xdomain.html#policy-file-host-basics
https://cloud.githubusercontent.com/assets/1223565/4783742/7458c9b0-5d34-11e4-9ea8-aece6f7ec2cd.png
² https://github.com/h5bp/server-configs-apache/blob/2.10.0/dist/.htaccess#L182-L206
³ e.g.: According to the results from the HTTP Archive from 15.10.2014:
+----+--------------------+---------------------------------+
| | number of requests | media type |
+----+--------------------+---------------------------------+
| 1 | 7406888 | image/jpeg |
| | ... | ... |
* | 21 | 54476 | text/x-cross-domain-policy |
| | ... | ... |
+----+--------------------+---------------------------------+
Query used:
select count(requestid) as number_of_requests,
mimetype as media_type
from [httparchive:runs.2014_10_15_requests]
group by media_type
order by number_of_requests desc;
https://www.igvita.com/2013/06/20/http-archive-bigquery-web-performance-answers/text/x-cross-domain-policy
1 parent 809b27f commit a0c4e17
File tree
5 files changed
+13
-0
lines changed- dist
- src/web_performance
- test/fixtures
5 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
| |||
866 | 867 | | |
867 | 868 | | |
868 | 869 | | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
869 | 873 | | |
870 | 874 | | |
871 | 875 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
| 689 | + | |
689 | 690 | | |
690 | 691 | | |
691 | 692 | | |
| |||
818 | 819 | | |
819 | 820 | | |
820 | 821 | | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
821 | 825 | | |
822 | 826 | | |
823 | 827 | | |
| |||
0 commit comments