Search results

  1. serpent_driver

    conditional lscache folders?

    That is why you don't have basic understanding. Your code is not wrong, but a lot is missing and that is why it doesn't work as expected. My code works, but it isn't universal code for every condition. You have a custom application and a custom application needs custom code.
  2. serpent_driver

    conditional lscache folders?

    Simple situation to understand that is a little bit more complicated as you think. You wrote, if a user comes to your shop the first time you will set a header. You can do that, but if a URL is cached you cannot set anything with PHP, because the requested URL is pure HTML code. This is the same...
  3. serpent_driver

    conditional lscache folders?

    Custom isn't bad, ofcourse. But you have some misunderstanding what it means if a URL is cached and you underestimate what is needed to get a full page cache like LScache work in an online shop. That is the big problem.
  4. serpent_driver

    conditional lscache folders?

    Custom? AARrrggghhhhhhhhhhhhhhhhh :( Custom doesn't mean that it doesn't work. It means it is impossible to teach you what to do on this way. What you need is more than 2 lines .htaccess code. So, forget it.... sorry
  5. serpent_driver

    conditional lscache folders?

    ...and tell me the name of the shopping system application. Maybe I already have a ready to run plugin for it.
  6. serpent_driver

    conditional lscache folders?

    Describe the task exactly. What should happen (or not) if someone with specific condition requests which URL?
  7. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    Okay, but I still believe in there is another solution for your need....
  8. serpent_driver

    Clarifications on purged cache clean-up

    Interested question! I think you will not get the answer in this forum and you better should open a support ticket, but don't forget to post the answer here. It's also interested for me.
  9. serpent_driver

    conditional lscache folders?

    If you need more information, check Wiki first. All basics about this stuff can be found there.
  10. serpent_driver

    conditional lscache folders?

    Yes, it is almost complete, but you still need the cookie in your definition. <IfModule LiteSpeed> CacheLookup public on RewriteRule .* - [E=cache-control:max-age=3600] RewriteCond %{HTTP_COOKIE} Cookie_Name_1 [NC] RewriteRule .* - [E=Cache-Control:vary=is_logged_in_cookie] RewriteCond...
  11. serpent_driver

    conditional lscache folders?

    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:developer_guide:cache-vary
  12. serpent_driver

    private cache page headers showing cache: miss

    Combine it <IfModule LiteSpeed> RewriteRule .* - [E=Cache-Control:private, max-age=20] </IfModule>
  13. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    Let me know what you get answered.
  14. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    I didn't say LiteSpeed cannot generally set headers in .htaccess. As I know this is limited to cache control, but if you think there is a bug why don't you open a support ticket to get qualified feedback?
  15. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    I don't know if it is a directive. To get LiteSpeed cache run you must not set PHP headers imperative. To get it work simple rewrite rules in .htaccess are enough. You should check LiteSpeed Wiki. In section no-plugin usage you should find a lot of information that will help you finding a solution.
  16. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    That will not work. Cache "headers" can only defined and set with PHP, not with .htaccess. If you want to overwrite existing headers you must find an entry at the application where you are the last one who has defined the header. It follows cascading prinziples, but only if a URL isn't already...
  17. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    I already understand where your need is, but again, if an URL is cached you cannot overwrite cache ttl with a new rule without to purge the cache or with a different vary cache tag. This is not a typical LiteSpeed behavior. That is a typical behavior of every fullpage cache. Maybe I...
  18. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    In my mind that hasn't something to with unsupported expressions. If an URL is cached you cannot define a new header on an already cached URL. Cache is cache and PHP cannot be executed. If you want to make it dynamically to set a new header depending on whatever you must use vary cache control...
  19. serpent_driver

    Litespeed ignores expr in .htaccess (mod_headers)

    This should help you to find the right syntax to define response header for cache control: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:developer_guide:response_headers
  20. serpent_driver

    Cyber Attack To My LSWS Server

    Try it out.
Top