I'm surprised nobody's encountered this before!?

My best solution so far is to create alternate URLs via routes, so all
links likely to be ajax will have a different cache file than those
likely to be traditional HTTP.

I'm pretty sure though that my progressively enhanced don't degrade
very gracefully - without JS, an ajax-optimised version of the cached
page will be returned in most instances :(

On Oct 7, 3:58 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> It took me a while to work out why my conventional links were
> returning ajax style, layout-less pages!
>
> - I have a page (in views/pages/) that has tabs, each of these tabs
> causes a page refresh
> - I use JQuery to hijack the links to make them ajax, so Cake returns
> the view without the layout
> - Other pages of the site link directly to specific tabs
>
> So, If the request that triggers a view cache refresh happens to be an
> ajax one, then the cache doesn't include the layout.
> That means that my conventional direct links to these pages will
> returned the cached, ajax optimised versions!!!
>
> Is there an elegant way to deal with this?
>
> Cheers!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to