mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Static domain header added and example added to e107.htaccess
This commit is contained in:
@@ -2671,7 +2671,13 @@ class e_http_header
|
|||||||
{
|
{
|
||||||
$this->setHeader("X-Powered-By: e107", true); // no less secure than e107-specific html.
|
$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)
|
if($this->compression_server_support == true)
|
||||||
{
|
{
|
||||||
$this->setHeader('Vary: Accept-Encoding');
|
$this->setHeader('Vary: Accept-Encoding');
|
||||||
|
@@ -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
|
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>
|
</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 set Cache-Control "public"
|
||||||
Header unset Cookie
|
Header unset Cookie
|
||||||
Header unset Set-Cookie
|
Header unset Set-Cookie
|
||||||
|
# Header set Access-Control-Allow-Origin "http://static.mydomain.com"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user