Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Oct 2014
    Location
    North Carolina
    Posts
    8
    Plugin Contributions
    1

    Idea or Suggestion [solved] CSS / Style sheet not working / broke after messing around also with cache



    • MY PROBLEM
      css not working on site.
      Pages loading blank no css / style sheet

    • MY SOLUTION
      Set all back to default then I still had an issue I was ripping my hair out to try fixing it

      Then I quickly remembered i set cache up in .htaccess so i deleted it and refreshed and all working good

      Cache as recommended in your includes/.htaccess
      Code:
      ##################
      ## Optional caching improvements
      ## Requires mod_header and mod_deflate to be enabled within Apache
      ##################
      <IfModule mod_headers.c>
        Header unset Pragma
        FileETag None
        Header unset ETag
        <FilesMatch ".*\.(ico|jpe?g|JPE?G|gif|GIF|webp|png|swf|flv)$">
          Header set Cache-control "max-age=864000, public, must-revalidate"
          Header unset Last-Modified
        </FilesMatch>
        <FilesMatch ".*\.(html|htm|xml|txt|xsl)$">
          Header set Cache-control "max-age=7200, must-revalidate"
        </FilesMatch>
      </IfModule>
      <IfModule mod_deflate.c>
        <FilesMatch "\.(js|css)$">
          SetOutputFilter DEFLATE
        </FilesMatch>
      </IfModule>
      
      ##################
      ## Optional improvements
      ## Requires mod_expires to be enabled within Apache
      ##################
      <ifmodule mod_expires.c>
        ExpiresActive On
        ExpiresDefault A300
        ExpiresByType application/x-javascript A3600
        ExpiresByType text/css A3600
        ExpiresByType image/gif A604800
        ExpiresByType video/x-flv A604800
        ExpiresByType application/pdf A604800
        ExpiresByType text/html A300
        ExpiresByType image/x-icon A86400
        ExpiresByType image/jpeg A2592000 
        ExpiresByType image/png A2592000 
      </ifmodule>

    Last edited by noahmarket; 14 Oct 2014 at 08:30 PM. Reason: added to title /spelling

 

 

Similar Threads

  1. Custom style sheet (css) does not display
    By airohead in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 25 Jan 2009, 07:51 AM
  2. Is default style sheet read at all while custom style sheet is on?
    By cochlear in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 May 2007, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg