- Posts: 28
COMMUNITY FORUM
K2 attachments and page cache problem
- neppers
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
The blank page indicated a PHP Fatal Error.
Please enable error reporting and set it to maximum in order to see the actual error.
Please Log in or Create an account to join the conversation.
- neppers
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Your hosting provider might assist you on locating it, if you do not know its location.
Please Log in or Create an account to join the conversation.
- neppers
-
Topic Author
- Offline
- Junior Member
- Posts: 28
GET /xxxxxxxx-xxxxxxxxx/item/download/149_cb2d60633d582163a9ce8e7b00819eb6 HTTP/1.1" 304
httpstatuses.com/304
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- neppers
-
Topic Author
- Offline
- Junior Member
- Posts: 28
:-)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- neppers
-
Topic Author
- Offline
- Junior Member
- Posts: 28
I had browser cache enabled inside the plugin, and when I disable that the problem seem to be solved. I tried that when writing this so I will have to wait and test before I am 100% sure. It would of course be nice to have that enabled, but if works this way it is ok.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Joomla! caching plugin.
Let me know on your findings. With page caching disabled is the issue resolved?
Please Log in or Create an account to join the conversation.
- neppers
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Jean Machuron
-
- Offline
- New Member
- Posts: 15
Seems like it sets something in the browser cache whether the cache is activated or not. We tested all configurations and every time a click on a download link sets the default url to this link only, making that any url will download the same file again and again.
The only way to restore old behavior is to add a query parameter at the end of any url so that the browser requests something else, like ?tp=1 for instance
We tested with all htaccess files including the standard joomla default one so it's not a htaccess problem. We deactivated all joomla caches or jot cache plugins, cache was empty, so that's neither a joomla plugin cache problem
We deactivated on the fly SEF and the behavior was then correct. Correct download of the file and then correct behavior of all urls.
Reactivating SEF on the fly shows back the problem
There are absolutely no errors in any apache or nginx logs.
Thanks for helping to solve this or our only solution would be to stop using k2 component.
Regards
Jean
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Which version of Joomla! and K2 are you using?
Also what is your 'normal' caching configuration?
Please Log in or Create an account to join the conversation.
- Jean Machuron
-
- Offline
- New Member
- Posts: 15
There is no cache activated in config for tests
The only solution that I found was to add index.php before the generation of the download link in the item template.
It works but I guess that this is something you should have a look at :-)
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Is it possible to have some more info on your setup? PHP version/ Server etc?
Please Log in or Create an account to join the conversation.
- Jean Machuron
-
- Offline
- New Member
- Posts: 15
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Jean Machuron
-
- Offline
- New Member
- Posts: 15
We checked all server side and everything is working fine.
This is a very important problem because it seems that the web engines have cached the download links and now we have every day a break in the website which only download the item from every page.
That's crazy. Do you have a suggestion to stop this ? any hints at the problem ?
Please Log in or Create an account to join the conversation.