-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
cdn.conf
43 lines (37 loc) · 1.76 KB
/
cdn.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<IfModule mod_cdn.c>
# mod_cdn will only CDNify links in HTML if the Content-Type of the
# object being delivered matches one that's been specified. Include
# any content-types that equate to (X)HTML; here are the standard
# ones:
CDNHTMLContentType text/html application/xhtml+xml
# Typically we want to replace links to static content, e.g., images,
# static HTML files, javascript, CSS, etc. First we have to specify
# (X)HTML tags and attributes where we'll look for links to replace.
# In general when CDNifying a site, we don't want to replace URLs in
# all the places they might occur in HTML; for example, we probably
# don't want form submissions to go through the CDN. I've left
# commented a couple of tags/attributes where there will be URLs we
# probably don't want to CDNify. Note: this list is based on that
# from mod_proxy_html 3.0.1.
# Here's the declaration for W3C HTML 4.01 and XHTML 1.0:
CDNHTMLLinks a href
CDNHTMLLinks area href
CDNHTMLLinks link href
CDNHTMLLinks img src longdesc usemap
CDNHTMLLinks object classid codebase data usemap
CDNHTMLLinks q cite
CDNHTMLLinks blockquote cite
CDNHTMLLinks ins cite
CDNHTMLLinks del cite
#CDNHTMLLinks form action
CDNHTMLLinks input src usemap
CDNHTMLLinks head profile
CDNHTMLLinks base href
CDNHTMLLinks script src for
# Here are some legacy tags/attributes from transitional (X)HTML:
CDNHTMLLinks frame src longdesc
CDNHTMLLinks iframe src longdesc
CDNHTMLLinks body background
CDNHTMLLinks applet codebase
# You can add tags/attributes of your own if necessary.
</IfModule>