1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Static domain header added and example added to e107.htaccess

This commit is contained in:
Cameron
2017-04-28 12:06:27 -07:00
parent 6dbe1c01da
commit 48a679bb98
2 changed files with 9 additions and 2 deletions

View File

@@ -2671,7 +2671,13 @@ class e_http_header
{
$this->setHeader("X-Powered-By: e107", true); // no less secure than e107-specific html.
}
if(defined('e_HTTP_STATIC'))
{
// $this->setHeader("Access-Control-Allow-Origin: *",true);
$this->setHeader("Access-Control-Allow-Origin: ".rtrim(e_HTTP_STATIC,'/'), true);
}
if($this->compression_server_support == true)
{
$this->setHeader('Vary: Accept-Encoding');

View File

@@ -103,10 +103,11 @@
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml text/xml application/rss+xml
</ifmodule>
<FilesMatch "\.(js|css|ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$">
<FilesMatch "\.(js|css|ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|eot|otf|ttc|ttf|woff)$">
Header set Cache-Control "public"
Header unset Cookie
Header unset Set-Cookie
# Header set Access-Control-Allow-Origin "http://static.mydomain.com"
</FilesMatch>