*

Smithtech

  • ****
  • 219 posts
I was trying to implement the solutions discussed on this blog post. https://osclasspoint.com/blog/improve-osclass-load-speed-b6

When I add the script provided on that page, my website stops working.
Below is the script.
Please could you help me?


<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public"

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

# BEGIN Expire headers
  ExpiresActive On
  ExpiresDefault "access plus 5 seconds"
  ExpiresByType image/x-icon "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
  ExpiresByType text/html "access plus 600 seconds"
  ExpiresByType application/xhtml+xml "access plus 600 seconds"
# END Expire headers

# BEGIN Cache-Control Headers
  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "public"
 
  <filesMatch "\.(css)$">
    Header set Cache-Control "public"
 
  <filesMatch "\.(js)$">
    Header set Cache-Control "private"
 
  <filesMatch "\.(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
# END Cache-Control Headersphp_value opcache.enable 0
php_value opcache.enable 0


*

MB Themes

@support
Try to remove this code:
Code: [Select]
php_value opcache.enable 0
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Hi

Please, I have removed the code but error still persists.

*

MB Themes

@support
Then I would check it with your hosting provider, maybe some options are not available on your hosting.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots