http/https versus caching

5 views
Skip to first unread message

Szabolcs Nagy

unread,
Feb 6, 2012, 5:47:55 AM2/6/12
to farcr...@googlegroups.com
Hi All,

I have a webskin which is  referencing external resources (e.g. js,css)
When I turn on caching and try to access the page through 'https://' I get a the previously cached version back where the external resources are referenced with 'http://'.

How can I convince farcry (version: 6.1.2) to create 2 different cached versions of the same webskin or use the cache only when the 'http://' protocol is used?
I tried to use @@CacheByVars cgi.server_port_secure:0 but it didn't work. What is the correct syntax to nominate a list of variables for @@CacheByVars annotation?

Thanks in advance,
Szabolcs




Justin Carter

unread,
Feb 6, 2012, 6:54:42 AM2/6/12
to farcr...@googlegroups.com
Try using protocol-less URI's when referencing your JS/CSS resources, then you won't need to vary your webskin caching by any vars.


I think the skin:registerJS/registerCSS/loadJS/loadCSS tags should still work fine with that type of URI as well (resources on external domains will be called directly and won't be minified / cached by FarCry).

cheers,
Justin

--
Justin Carter
http://www.madfellas.com/blog
http://twitter.com/justincarter







--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Szabolcs Nagy

unread,
Feb 6, 2012, 9:45:25 AM2/6/12
to farcr...@googlegroups.com
Thanks Justin,
I didn't know that is possible.
Szabolcs
Reply all
Reply to author
Forward
0 new messages