Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[info] "Document Expired" + Joomla + Backbutton 10 years 2 months ago #11993

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4529
  • Thank you received: 493
At the moment the problem is not there, but just wanted to mention this as it can be a pesky one.

The error can happen when
"$cachable = true;"
has been used in the main controller.

when it's set to false it's not a problem as it won't store the page in the cache.

The problem can be seen when:
- making menu-link to archived articles
- sort + click link + hit backbutton of your browser
Sorting is using GET instead of POST and perhaps it has to with that + also the expiring date (1970) is not good.

so yep you can:
- disable caching, setting to false (main controller)
- change the expire headers when you want to use cache
- or use a back button (image)

when using the backbutton you can make use of
HTTP_REFERER
and a thing to keep in mind is that a direct link won't output something. so yep when there is something then output the image and when not then don't display it.
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.

[info] "Document Expired" + Joomla + Backbutton 10 years 2 months ago #11997

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4529
  • Thank you received: 493
was a bit to optimistic about this one..

Did notice that the problem still occurs and probably the only thing to adjust it correctly is to set the expire headers. (Did had a plugin installed that did adjusted it)

so yep wil it ad it to the to-do/find-out list for the next months.

//
maybe good to say: am using J3 at the moment so didn't try if it was the case with J2.5+ too.


Edit:

Am using this add-on for now, it will/can adjust the header (Jresponse):
extensions.joomla.org/extensions/site-ma...-web-standards/12785

and to take a lok at the cache in firefox, type in:
about:cache

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.
  • Page:
  • 1
Time to create page: 0.258 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......