Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 04:25:42

Author Topic: hiawatha only how to set browser caching  (Read 3079 times)

0 Members and 1 Guest are viewing this topic.

Offline ibuxxi

  • Senior Member
  • *
  • Posts: 322
  • Karma: +0/-0
    • View Profile
hiawatha only how to set browser caching
« on: 2015-07-30, 15:37:22 »
Hello

i have on */hiawatha/conf/toolkits/cache-busting-control.conf
Code: [Select]
UrlToolkit {
    ToolkitID = cache-busting-control
    Match ^/.*\.(css|eot|gif|htm|html|ico|jpeg|jpg|js|otf|pdf|png|ps|psd|svg|swf|ttf|txt|woff|woff2)(\?v=.*|\?ver=.*)?(/|$) Expire 1 months
}

then i insert cache-busting-control in */hiawatha/conf/domains/domain.com.conf
web for  ssl and nonssl
Code: [Select]
UseToolkit = block_shellshock, redirect_womomobil_com, findindexfile, permalink, cache-busting-control

but not work why ?
Code: [Select]
curl --head http://domain.com
HTTP/1.1 200 OK
Date: Thu, 30 Jul 2015 13:41:31 GMT
Server: Hiawatha v9.14
Connection: keep-alive
X-Frame-Options: sameorigin
Transfer-Encoding: chunked
X-Powered-By: PHP/5.6.11
Set-Cookie: PHPSESSID=1f4a6105c660418da5c7fdb2a4650ee9; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://domain.com/xmlrpc.php
Content-Type: text/html; charset=UTF-8

where can I set the urltoolkits
KVM VPS | Centos 6.8 (32) 2GB | Kloxo-MR 7.0.0.b-2016* | hiawatha | php56 | php-fpm-event | mariadb

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: hiawatha only how to set browser caching
« Reply #1 on: 2015-07-30, 15:42:26 »
Copy domains.conf.tpl to custom.domains.conf.tpl and then modified this custom file. After that, run 'sh /script/fixweb; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: hiawatha only how to set browser caching
« Reply #2 on: 2015-07-30, 15:47:59 »
Alternatively, create .hiawatha in /home/<user>/<domain>/ with content 'UseToolkit = block_shellshock, redirect_womomobil_com, findindexfile, permalink, cache-busting-control'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zenkul

  • Global Moderator
  • Master
  • *****
  • Posts: 383
  • Karma: +3/-0
    • View Profile
    • home & decor
Re: hiawatha only how to set browser caching
« Reply #3 on: 2015-07-31, 03:21:48 »
to execute cache must be add "header("X-Hiawatha-Cache: 100");"
in index.php file at website root folder
https://www.hiawatha-webserver.org/forum/topic/994

maybe, i am not check
easy, secure and speed up web panel ===> Kloxo-MR

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.067 seconds with 18 queries.

web stats analysis