Skip to main content

Customizing htaccess question

Comments

7 comments

  • cPanelLauren
    It looks fine, but I can't tell you if it will cause issues with your site, most likely it won't. In the event there is an issue caused by the .htaccess just remove the .htaccess. Thanks!
    0
  • Melissa2019B
    Thank you Lauren!
    0
  • Melissa2019B
    Oh, I was just checking GT Metrix, after adding the above to the htaccess file and uploading it, and Yslow said: Add Expires headers F (45) It showed this Google stuff - much of it js.?: - Removed - So I'm confused. I have and Expires Caching section with: ExpiresByType text/x-javascript "access plus 1 month" Is that not what they're talking about? I looked it up at another site and it says: # One month for most static assets Header set Cache-Control "max-age=2628000, public" Are these saying the same thing, or which should I use?
    0
  • Infopro
    checking GT Metrix

    They do provide more details on the site about this: Leverage browser caching | GTmetrix
    0
  • Melissa2019B
    Yes Infopro, but that seems to be what I have now, yet they're saying at Yslow that I need it anyway. That was why I was thinking that perhaps the # One month for most static assets Header set Cache-Control "max-age=2628000, public" is doing something different?
    0
  • Melissa2019B
    Oh wait! I DO have both, but Yslow is apparently complaining on js that resides on Google's site!
    0
  • Infopro
    Details! Now you're cooking with gas! :)
    0

Please sign in to leave a comment.