cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New

Cache Issues

I am having a challenge with the following:

1. Leverage Browser Caching

2. Specify a Vary: Accept-Encoding header, and

3. Add Expires headers.

I believe I have all the appropriate coding in my .htaccess file (actually in my .user.ini file) but no matter how I can these or the order I set them up in my file they seem to be ignored.

I think the issue is with Godaddy's caching set up. I would have expected the cache to have addressed all of these issues.

When I talk with the Godaddy reps them all say there is nothing we can do about the cache and there is no Cache "Go To" techs that are available.

Does anyone else have these issues? Does anyone know how to solve these issues?

4 REPLIES 4

Re: Cache Issues

Hey Doug -- I am also having these issues on my Wordpress site. 

 

I tried adding code to my .htaccess file to specify a Vary header and it did not work. (maybe the wrong code but I have been searching for alternatives with no luck). 

 

I used: 

<IfModule mod_headers.c>
          <FilesMatch ".(js|css|xml|gz|html)$">
             Header append Vary: Accept-Encoding
          </FilesMatch>
</IfModule>

 

I tried downloading plugins to help with the caching and site speed and my dashboard basically stopped working because of it so had to delete them. I guess GoDaddy doesn't like WP Rocket or W3 Total Cache but it's frustrating because my site is super slow on their caching! 

 

So I don't really have any solutions right now but I am having the same issues as you. Here's hoping GoDaddy can provide a sensible solution. 

 

Re: Cache Issues

Any luck with this? I've tried plugin after plugin, but I can't get my pagespeed score over 45. 

Helper II

Re: Cache Issues

Adding the following to .htaccess with Filezilla or through a file manager plugin has helped my site considerably:

 

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</IfModule>

I have also entered: 

<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|gz|html)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
 
But, I will admit that I have been unable to get this piece of code detected on Managed WordPress with speed test sites. I have it there anyway, though.


--The largest litter of kittens produced was 19 kittens. - Cat Fact # 77--
Highlighted

Re: Cache Issues

cache issues remove please take your problem