Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
Problem with mobile display
- schulzdesign
-
Topic Author
- Junior Member
-
Less
More
IP: 91.15.170.8
6 years 9 months ago #5207
by schulzdesign
Sincerely,
Thorsten
Replied by schulzdesign on topic Problem with mobile display
Hello Olivier,
Thank you very much, but as I said, unfortunately it doesn't work - or I'm too stupid.
I have now deactivated the cache in the Joomla configuration and it works.
However, I would prefer the chache to remain activated.
Would you be willing to take a look at the backend of my site? I would send you access data. I would, of course, pay the time you spend.
Best regards,
Thorsten
Thank you very much, but as I said, unfortunately it doesn't work - or I'm too stupid.
I have now deactivated the cache in the Joomla configuration and it works.
However, I would prefer the chache to remain activated.
Would you be willing to take a look at the backend of my site? I would send you access data. I would, of course, pay the time you spend.
Best regards,
Thorsten
Sincerely,
Thorsten
- syw
-
- Administrator
-
Less
More
- Posts: 829
IP: 24.185.124.166
6 years 9 months ago #5208
by syw
Olivier.
Replied by syw on topic Problem with mobile display
Thorsten,
When you have the Joomla cache active, you cannot see changes you make in modules. You can only see the cached modules, not the attempts you make in changing parameters (until the cache resets).
You don't need to disable the Joomla cache for the entire site. But you can isolate the module from being cached (especially while testing it). Set caching to 'no caching' in the advanced tab of the module (one of the last parameters). Make sure you also have 'reset headers' to 'yes' so that stylesheets are re-created when you re-adjust parameters.
If that still does not work for you, please send your credentials to [email protected].
When you have the Joomla cache active, you cannot see changes you make in modules. You can only see the cached modules, not the attempts you make in changing parameters (until the cache resets).
You don't need to disable the Joomla cache for the entire site. But you can isolate the module from being cached (especially while testing it). Set caching to 'no caching' in the advanced tab of the module (one of the last parameters). Make sure you also have 'reset headers' to 'yes' so that stylesheets are re-created when you re-adjust parameters.
If that still does not work for you, please send your credentials to [email protected].
Olivier.
- schulzdesign
-
Topic Author
- Junior Member
-
IP: 91.15.170.8
6 years 9 months ago #5209
by schulzdesign
Sincerely,
Thorsten
Replied by schulzdesign on topic Problem with mobile display
Hello Olivier,
Thanks again for your help and sorry for my stupidity.
I have now found that it is not the cache, but the .htacess
After I deactivated the cache, the success was short-lived. After I removed the following code from the .htaccess, it worked. Can you see what the error is so I don't have to remove all of the code?
Thank you very much,
Thorsten
Thanks again for your help and sorry for my stupidity.
I have now found that it is not the cache, but the .htacess
After I deactivated the cache, the success was short-lived. After I removed the following code from the .htaccess, it worked. Can you see what the error is so I don't have to remove all of the code?
Code:
# Deflate Compression by FileType
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>
# turns cache on for 1 month
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType font/ttf "access 1 week"
ExpiresByType font/woff "access 1 week"
ExpiresByType font/woff3 "access 1 week"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/html "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType video/mp4 "access 1 month"
ExpiresByType video/webm "access 1 month"
</IfModule>
<ifmodule mod_headers.c>
<filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesmatch>
<filesmatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</filesmatch>
<filesmatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</filesmatch>
</ifmodule>
# Deflate Compression by MimeType
<IfModule mod_deflate.c>
<FilesMatch "\.(js|jpg|jpeg|gif|png|css)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
# gzip Compression if availiable
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
Thorsten
Sincerely,
Thorsten
- syw
-
- Administrator
-
Less
More
- Posts: 829
IP: 24.185.124.166
6 years 9 months ago #5210
by syw
Olivier.
Replied by syw on topic Problem with mobile display
No problem Thorsten,
you are getting a lot of side effects because of all these cache setups. No wonder you could not see your changes
You are using deflate and gzip compression in your htaccess file. I don't think you should use both. Use one or the other. You could also use gzip compression from your Joomla console to make it easier.
Furthermore, you may have to adjust the access times you have set.
As an example, here is what JCH Optimize does by default:
You may want to try that ONCE your site is all setup.
you are getting a lot of side effects because of all these cache setups. No wonder you could not see your changes
You are using deflate and gzip compression in your htaccess file. I don't think you should use both. Use one or the other. You could also use gzip compression from your Joomla console to make it easier.
Furthermore, you may have to adjust the access times you have set.
As an example, here is what JCH Optimize does by default:
Code:
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Your document html
ExpiresByType text/html "access plus 0 seconds"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# Favicon (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# HTC files (css3pie)
ExpiresByType text/x-component "access plus 1 month"
# Webfonts
ExpiresByType application/font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# CSS and JavaScript
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
You may want to try that ONCE your site is all setup.
Olivier.
- schulzdesign
-
Topic Author
- Junior Member
-
IP: 91.15.170.111
6 years 9 months ago #5211
by schulzdesign
Sincerely,
Thorsten
Replied by schulzdesign on topic Problem with mobile display
Hi there,
Thank you very much.
I have now tried it several times with different methods and it just does not work with this website. It works on other websites where I did it.
There must be something else.
I'll have to come up with something else. Maybe I'll try the standard Joomla news flash for mobile viewing.
Thanks anyway for the quick support.
Best regards
Thorsten
Thank you very much.
I have now tried it several times with different methods and it just does not work with this website. It works on other websites where I did it.
There must be something else.
I'll have to come up with something else. Maybe I'll try the standard Joomla news flash for mobile viewing.
Thanks anyway for the quick support.
Best regards
Thorsten
Sincerely,
Thorsten
- syw
-
- Administrator
-
Less
More
- Posts: 829
IP: 24.185.124.166
6 years 9 months ago #5212
by syw
Olivier.
Replied by syw on topic Problem with mobile display
Hi Thorsten,
send me login information and I will take a look (although I won't be able to access all aspects of your site's configuration).
Send an email to [email protected].
Thank you!
send me login information and I will take a look (although I won't be able to access all aspects of your site's configuration).
Send an email to [email protected].
Thank you!
Olivier.
