14 Oct 2014, 7:27 PM
New Zenner
- Join Date:
- Oct 2014
- Location:
- North Carolina
- Posts:
- 8
- Plugin Contributions:
- 1
[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 :shocking: 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
##################
## 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>
**