TrogloGeek / prestashop-tggatos-module

TggAtos Module for Prestashop (1.4 to 1.7), ATOS SIPS 6xx payment gateway
61 stars 34 forks source link

Compression #50

Closed Nikusfr closed 7 years ago

Nikusfr commented 8 years ago

Bonjour,

Nous utilisons votre super module, mais après avoir essayé d'optimiser notre site dans le .HTACCESS , avec les lignes ci dessous (mise en cache et compression), le transaction ID semble lui aussi mis en cache et ne s’incrémente plus. Ce qui rend le module de paiement CB inutilisable.

Si vous avez une solution je suis preneur.

# ACTIVATION DE LA COMPRESSION DES PAGES
# <IfModule mod_deflate.c>
# SetOutputFilter DEFLATE
# AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
# POUR LES NAVIGATEURS INCOMPATIBLES
# BrowserMatch ^Mozilla/4 gzip-only-text/html
# BrowserMatch ^Mozilla/4\.0[678] no-gzip
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
#PAS DE COMPRESSION POUR LES FORMATS NE LE NECESSITANT PAS
# SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
# </IfModule>

# GESTION DES DATES D'EXPIRATION POUR FAVORISER LE CACHE NAVIGATEUR
# <IfModule mod_expires.c>
#  ExpiresActive On
#  ExpiresDefault "access plus 7200 seconds"
#  ExpiresByType image/jpg "access plus 2592000 seconds"
#  ExpiresByType image/jpeg "access plus 2592000 seconds"
#  ExpiresByType image/png "access plus 2592000 seconds"
#  ExpiresByType image/gif "access plus 2592000 seconds"
#  AddType image/x-icon .ico
# ExpiresByType image/ico "access plus 2592000 seconds"
#  ExpiresByType image/icon "access plus 2592000 seconds"
#  ExpiresByType image/x-icon "access plus 2592000 seconds"
#  ExpiresByType text/css "access plus 2592000 seconds"
#  ExpiresByType text/javascript "access plus 2592000 seconds"
#  ExpiresByType text/html "access plus 7200 seconds"
#  ExpiresByType application/xhtml+xml "access plus 7200 seconds"
#  ExpiresByType application/javascript A259200
#  ExpiresByType application/x-javascript "access plus 2592000 seconds"
#  ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"

# MISE EN CACHE DES FICHIERS NON DYNAMIQUES : IMAGES, CSS, JAVASCRIPT...
# <IfModule mod_headers.c>
#  <FilesMatch "\\.(ico|jpe?g|JPE?G|png|gif|swf|css|gz)$">
#  Header set Cache-Control "max-age=2592000, public"
#  </FilesMatch>
#  <FilesMatch "\\.(js)$">
#  Header set Cache-Control "max-age=2592000, private"
#  </FilesMatch>
# <filesMatch "\\.(html|htm)$">
# Header set Cache-Control "max-age=7200, public"
# </filesMatch>

# DESACTIVATION DU CACHE POUR LES FICHIERS DYNAMIQUES
# <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
# Header unset Cache-Control
# </FilesMatch>
# </IfModule>

# SUPPRESSION DES ETAGS
# Header unset ETag
# FileETag none
TrogloGeek commented 8 years ago
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
    Header unset Cache-Control
</FilesMatch>

Cette partie peut entrer en conflit avec la gestion des caches par les scripts PHP en désactivant des en-têtes émis par PHP. https://github.com/TrogloGeek/prestashop-tggatos-module/blob/RC_4.1.0/controllers/front/paymentgateway.php#L22