• I have a page on WordPress.com where I want to add expires headers.
    I see that in WordPress.com there is no htaccess and that the server is nginx, what is the way to add this type of headers?
    For example:

    location ~*  \.(jpg|jpeg|gif|png|svg)$ {
    		expires 365d;
    	}
    
    	location ~*  \.(pdf|css|html|js|swf)$ {
    		expires 2d;
    	}

    Edit: I tried with the plugin Hummingbird but it says the cache types don’t meet the recommended period type and it won’t get activated.

    • This topic was modified 3 years, 4 months ago by blacksun1991.
    • This topic was modified 3 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add expires headers in WordPress.com page’ is closed to new replies.