Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Leverage Browser Caching Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 275 posts

Posted 24 February 2018 - 12:50 PM #1

hi i am running on nginx i use this rules

https://docs.cs-cart...tall/nginx.html

 

when i check the gmetrix or google page speed says Leverage browser caching erros

also cloudfront cd getting origins error

 

i think part of codes doesnt work

#   The main rule for searching static files
        location ~* /(\w+/)?(\w+/)?(.+\.(jpe?g|ico|gif|png|css|js|pdf|txt|tar|wof|woff|svg|ttf|csv|zip|xml|yml)) {
            access_log off;
        #   The rule for searching static files. If the server can’t find the file in the store folder, it will use the @statics rule.
        #   For example, if your store is located at example.com/shop/
            try_files $uri $uri/ /$1/$3 /$2/$3 $3 @statics;
            expires max;
            add_header Access-Control-Allow-Origin *;
            add_header Cache-Control public;
        }

how can i fix this please help !



 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 275 posts

Posted 24 February 2018 - 01:29 PM #2

also i cant see curl -I image.png headers ?



 
  • martfox
  • Member
  • Authorized Reseller
  • Join Date: 15-Jan 10
  • 548 posts

Posted 24 February 2018 - 01:41 PM #3

In '/etc/nginx/sites-enabled/yoursite' add or edit this code in the top:
 
server {
    listen  0.0.0.0:8082;
    server_name yourdomain.xy;
    server_name www.yourdomain.xy;
    expires 35d;
    client_max_body_size 4G;

Restart your server...

CS-Cart with 1 Year FREE Web Hosting | CS-Cart optimized SSD Cloud VPS Servers from €10.00/month
.
VPS SSD Cloud from €10.00 *** Dedicated Servers *** CS-Cart Authorized Reseller and Web Hosting Provider


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 275 posts

Posted 24 February 2018 - 04:34 PM #4

its worked but why up code doesnt work ? or who can fix it ? also update 4.7.2 ll thumbnails gone and never come back again

tried clear thumbnails cache. etc.