Jump to content

mrj

Members
  • Posts

    303
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mrj

  1. you can enable it from cPanel > Optimze Website. If you want to do it manually you have to include following code to your .htaccess file:

    <IfModule mod_deflate.c>
        AddOutPutFilterByType DEFLATE text/xml text/css font/opentype font/otf text/javascript font/ttf application/vnd.ms-fontobject application/x-font-opentype application/x-font-otf application/x-font-ttf application/x-font-truetype application/x-font application/javascript text/plain image/x-icon image/svg+xml application/x-javascript application/xhtml+xml application/rss+xml application/xml
        <IfModule mod_setenvif.c>
            # Netscape 4.x has some problems...
            BrowserMatch ^Mozilla/4 gzip-only-text/html
    
            # Netscape 4.06-4.08 have some more problems
            BrowserMatch ^Mozilla/4\.0[678] no-gzip
    
            # MSIE masquerades as Netscape, but it is fine
            # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    
            # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
            # the above regex won't work. You can use the following
            # workaround to get the desired effect:
            BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    
            # Don't compress images
            SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
        </IfModule>
    
        <IfModule mod_headers.c>
            # Make sure proxies don't deliver the wrong content
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </IfModule>
    # Set server time zone as Dhaka, Bangladesh
    SetEnv TZ Asia/Dhaka
    # Cache for speeding up
    <FilesMatch "\.(?i:gif|jpe?g|png|ico|css|js|swf|xml)$">
      <IfModule mod_headers.c>
        Header set Cache-Control "max-age=864000, public, must-revalidate"
      </IfModule>
    </FilesMatch>
    <IfModule mod_headers.c>
    Header set Strict-Transport-Security "max-age=63072000; includeSubDomains"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-Xss-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
    </IfModule>
    <FilesMatch "\.(ttf|otf|eot|woff)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>
    <IfModule mod_headers.c>
      <FilesMatch "\.(js|css|xml|gz)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
    </IfModule>
  2. Yeah. That's why I am still sad. Messi is my favourite player also. But every time he miss goal shots when he plays for his country.It's makes everyone think about Messi that something is wrong with him. I am hoping for something good in next. There is a big change in Argentina team for next match. Looking for some Magic from Messi. ✌

  3. Okay, XAMPP is required for testing offline and locally. I have it. NetBeans IDE and Visual Studio Code is little bit complicated for me. Because I am new at these things. Now I am going to try jEdit (got idea from stackoverflow) and Notepad++ (as most peoples suggested). Thanks all for your suggestions. You are welcome to give your opinions.

  4. I've installed NetBeans IDE and JDK 8. I will try them tonight. As I don't have broadband connection, I need to wait before I get huge (mobile) data. Then I will try all of your suggested IDEs.

  5. I heard that Visual Studio is paid and require a lot of resource and memory. Free ones will be best. Is the NeatBean good? Should I install XAMPP for testing my codes offline? Please tell me your opinions.

  6. Hi,

    I had been coding on mobile since I learned to code. Now I am going to get a laptop. So I just want to know which IDE or software(s) should I install on my Laptop for developing my site. Any suggestions for this noob?? :)

×
×
  • Create New...