jpayam Posted September 21, 2017 Share Posted September 21, 2017 I wish if it possible add a parameter to end of url (eg: http://storeurl.com/index.php?12334) for below 4 situations : if languages is not main default languages, currency is not main default currency, ,customer loggeds and hopping cart is not empty. thanks in advance for any suggestions Quote Link to comment Share on other sites More sharing options...
Noodleman Posted September 21, 2017 Share Posted September 21, 2017 why? Quote Link to comment Share on other sites More sharing options...
jpayam Posted September 21, 2017 Author Share Posted September 21, 2017 for Controlling CDN provider cashing system. i want to set a rule to cash all my HTML pages ( http://storeurl/*.html ) but I don't want my content cached if languages, currency are not default or customer loggeds. Quote Link to comment Share on other sites More sharing options...
Noodleman Posted September 21, 2017 Share Posted September 21, 2017 that makes sense. BUT, CDN's typically only need to cache the larger static objects, such as images/scripts etc, you woudn't want it to cache the HTML in the page for the very reason your saying. so what you really need is to update your store theme, change the URL's to include the CDN prefix/configuration for things like scripts and images and sync with your CDN provider. At least, that's how it's worked for CDN's I've looked to impliment for other customers earlier this year. You don't want to cache dynamic content Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 21, 2017 Share Posted September 21, 2017 Would an HTTP Header suffice? That is, whatever your off-site caching application (CDN) looks for to determine if the page is to override standard caching mechanisms? The trick of adding a querystring to a URL works well to force the web browser to always fetch a fresh copy of a file (CSS, javascript) when making its GET requests. I have no experience with this method affecting the behavior of any intermediate system. Quote Link to comment Share on other sites More sharing options...
jpayam Posted September 22, 2017 Author Share Posted September 22, 2017 I can not create rule for CDN system by HTTP Header, I need to find or create a way to differentiate static versus dynamic content by the URL. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.